OU - Make the test specific for this sub class of OffsetUnitpublic class AbstractOffsetUnitTest<OU extends OffsetUnit<OU>> extends AbstractUnitTest<OU>
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
AbstractOffsetUnitTest() |
| Modifier and Type | Method and 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 |
getOffsetTo(OU fromUnit,
OU toUnit) |
checkKeys, checkUnitRatioNameAndAbbreviation, getMultiplicationFactorToprotected final void checkUnitRatioOffsetNameAndAbbreviation(OU ou, double expectedRatio, double expectedOffset, double precision, String expectedName, String expectedAbbreviation)
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 resourcesCopyright © 2014–2015 Delft University of Technology. All rights reserved.