Package org.djunits.unit
Class AbstractOffsetUnitTest<OU extends Unit<OU>>
- java.lang.Object
-
- org.djunits.unit.AbstractUnitTest<OU>
-
- org.djunits.unit.AbstractOffsetUnitTest<OU>
-
- Type Parameters:
OU
- Make the test specific for this sub class of OffsetUnit
- Direct Known Subclasses:
AbsoluteTemperatureUnitTest
,PositionUnitTest
,TimeUnitTest
public class AbstractOffsetUnitTest<OU extends Unit<OU>> extends AbstractUnitTest<OU>
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 AbstractOffsetUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkUnitRatioOffsetNameAndAbbreviation(OU ou, double expectedRatio, double expectedOffset, double precision, String expectedName, String expectedAbbreviation)
Verify one length conversion factor to standard unit and the localization of the name and abbreviation.double
getMultiplicationFactorTo(OU fromUnit, OU toUnit)
-
Methods inherited from class org.djunits.unit.AbstractUnitTest
checkUnitNameAndAbbreviation
-
-
-
-
Method Detail
-
checkUnitRatioOffsetNameAndAbbreviation
protected final void checkUnitRatioOffsetNameAndAbbreviation(OU ou, double expectedRatio, double expectedOffset, double precision, String expectedName, String expectedAbbreviation)
Verify one length conversion factor to standard unit and the localization of the name and abbreviation.- Parameters:
ou
- Unit to checkexpectedRatio
- Double; expected ratioexpectedOffset
- Double; expected offsetprecision
- Double; precision of verificationexpectedName
- String; expected name in the resourcesexpectedAbbreviation
- String; expected abbreviation in the resources
-
-