public class AngleUnitTest extends AbstractUnitTest<AngleUnit>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, by $Author: averbraeck $,
initial version Jun 4, 2014
Constructor and Description |
---|
AngleUnitTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkUnitValueNameAndAbbreviation(AngleUnit au,
double expectedValue,
double precision,
String expectedName,
String expectedAbbreviation)
Verify one length conversion factor to standard unit and the localization of the name and abbreviation.
|
void |
conversions()
Verify conversion factors, English names and abbreviations.
|
void |
createAngleUnit()
Verify that we can create our own angle unit.
|
void |
keys()
Verify the result of some get*Key methods.
|
void |
normalizations()
Verify that the normalizations work as intended.
|
void |
setup()
Set the locale to "en" so we know what texts should be retrieved from the resources.
|
checkKeys, checkUnitNameAndAbbreviation
public final void setup()
public final void keys()
protected final void checkUnitValueNameAndAbbreviation(AngleUnit au, double expectedValue, double precision, String expectedName, String expectedAbbreviation)
au
- Unit to checkexpectedValue
- Double; expected value of one 'unit to check' in SI unitsprecision
- Double; precision of verificationexpectedName
- String; expected name in the resourcesexpectedAbbreviation
- String; expected abbreviation in the resourcespublic final void conversions()
public final void createAngleUnit()
public final void normalizations()
Copyright © 2015–2018 Delft University of Technology. All rights reserved.