Package org.djunits.unit
Class TimeUnitTest
java.lang.Object
org.djunits.unit.AbstractUnitTest<OU>
org.djunits.unit.AbstractOffsetUnitTest<org.djunits.unit.TimeUnit>
org.djunits.unit.TimeUnitTest
public class TimeUnitTest extends AbstractOffsetUnitTest<org.djunits.unit.TimeUnit>
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 TimeUnitTest() -
Method Summary
Modifier and Type Method Description voidconversions()Verify conversion factors, English names and abbreviations.voidcreateTimeUnit()Verify that we can create our own duration unit.voidsetup()Set the locale to "en" so we know what texts should be retrieved from the resources.voidtestRelative()Verify relative base unit.Methods inherited from class org.djunits.unit.AbstractOffsetUnitTest
checkUnitRatioOffsetNameAndAbbreviation, getMultiplicationFactorTo
-
Constructor Details
-
TimeUnitTest
public TimeUnitTest()
-
-
Method Details
-
setup
public final void setup()Set the locale to "en" so we know what texts should be retrieved from the resources. -
conversions
public final void conversions()Verify conversion factors, English names and abbreviations. -
createTimeUnit
public final void createTimeUnit()Verify that we can create our own duration unit. -
testRelative
public final void testRelative()Verify relative base unit.
-