U - Make the test specific for this sub class of Unitpublic abstract class AbstractUnitTest<U extends Unit<U>> extends Object
 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 | 
|---|
| AbstractUnitTest() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkKeys(U u,
         String expectedNameKey,
         String expectedAbbreviationKey)Check the nameKey and abbreviationKey of a Unit. | 
| protected void | checkUnitRatioNameAndAbbreviation(U u,
                                 double expectedRatio,
                                 double precision,
                                 String expectedName,
                                 String expectedAbbreviation)Verify one length conversion factor to standard unit and the localization of the name and abbreviation. | 
| double | getMultiplicationFactorTo(U fromUnit,
                         U toUnit) | 
protected final void checkUnitRatioNameAndAbbreviation(U u, double expectedRatio, double precision, String expectedName, String expectedAbbreviation)
u - Unit to checkexpectedRatio - Double; expected ratioprecision - Double; precision of verificationexpectedName - String; expected name in the resourcesexpectedAbbreviation - String; expected abbreviation in the resourcesprotected final void checkKeys(U u, String expectedNameKey, String expectedAbbreviationKey)
u - Unit to checkexpectedNameKey - String; expected name keyexpectedAbbreviationKey - String; expected abbreviation keyCopyright © 2014–2015 Delft University of Technology. All rights reserved.