Package org.djunits.unit
Class AbstractUnitTest<U extends org.djunits.unit.Unit<U>>
java.lang.Object
org.djunits.unit.AbstractUnitTest<U>
- Type Parameters:
U
- Make the test specific for this sub class of Unit
- Direct Known Subclasses:
AbstractLinearUnitTest
,AbstractOffsetUnitTest
,DirectionUnitTest
public abstract class AbstractUnitTest<U extends org.djunits.unit.Unit<U>> extends Object
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 AbstractUnitTest()
-
Method Summary
Modifier and Type Method Description protected void
checkUnitNameAndAbbreviation(U u, String expectedName, String expectedAbbreviation)
Verify the localization of the name and abbreviation.
-
Constructor Details
-
AbstractUnitTest
public AbstractUnitTest()
-
-
Method Details
-
checkUnitNameAndAbbreviation
protected final void checkUnitNameAndAbbreviation(U u, String expectedName, String expectedAbbreviation)Verify the localization of the name and abbreviation.- Parameters:
u
- Unit to checkexpectedName
- String; expected name in the resourcesexpectedAbbreviation
- String; expected abbreviation in the resources
-