U
- Make the test specific for this sub class of Unitpublic abstract class AbstractLinearUnitTest<U extends org.djunits.unit.LinearUnit<U>> extends AbstractUnitTest<U>
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.
$LastChangedDate: 2019-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, by $Author: averbraeck $,
initial version Jun 4, 2014
Constructor and Description |
---|
AbstractLinearUnitTest() |
Modifier and Type | Method and Description |
---|---|
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) |
checkKeys, checkUnitNameAndAbbreviation
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 resourcesCopyright © 2015–2019 Delft University of Technology. All rights reserved.