Package org.djunits.unit
Class AngleUnitTest
java.lang.Object
org.djunits.unit.AbstractUnitTest<U>
org.djunits.unit.AbstractLinearUnitTest<org.djunits.unit.AngleUnit>
org.djunits.unit.AngleUnitTest
public class AngleUnitTest extends AbstractLinearUnitTest<org.djunits.unit.AngleUnit>
Copyright (c) 2013-2019 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
Modifier and Type Method Description protected void
checkUnitValueNameAndAbbreviation(org.djunits.unit.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
-
Constructor Details
-
AngleUnitTest
public AngleUnitTest()
-
-
Method Details
-
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(org.djunits.unit.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.
-