U
- Make the test specific for this sub class of Unitpublic abstract class AbstractUnitTest<U extends org.djunits.unit.Unit<U>> extends Object
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 |
---|
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 |
checkUnitNameAndAbbreviation(U u,
String expectedName,
String expectedAbbreviation)
Verify the localization of the name and abbreviation.
|
protected final void checkUnitNameAndAbbreviation(U u, String expectedName, String expectedAbbreviation)
u
- Unit to checkexpectedName
- String; expected name in the resourcesexpectedAbbreviation
- String; expected abbreviation in the resourcesCopyright © 2015–2019 Delft University of Technology. All rights reserved.