Package org.djunits.unit
Class AngleUnitTest
- java.lang.Object
-
- org.djunits.unit.AbstractUnitTest<U>
-
- org.djunits.unit.AbstractLinearUnitTest<AngleUnit>
-
- org.djunits.unit.AngleUnitTest
-
public class AngleUnitTest extends AbstractLinearUnitTest<AngleUnit>
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.- Author:
- Peter Knoppers
-
-
Constructor Summary
Constructors Constructor Description AngleUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
setup()
Set the locale to "en" so we know what texts should be retrieved from the resources.-
Methods inherited from class org.djunits.unit.AbstractLinearUnitTest
checkUnitRatioNameAndAbbreviation, getMultiplicationFactorTo
-
Methods inherited from class org.djunits.unit.AbstractUnitTest
checkUnitNameAndAbbreviation
-
-
-
-
Method Detail
-
setup
public final void setup()
Set the locale to "en" so we know what texts should be retrieved from the resources.
-
checkUnitValueNameAndAbbreviation
protected final 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.- Parameters:
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 resources
-
conversions
public final void conversions()
Verify conversion factors, English names and abbreviations.
-
createAngleUnit
public final void createAngleUnit()
Verify that we can create our own angle unit.
-
-