Package org.djunits.unit
Class AbstractUnitTest<U extends 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
Copyright (c) 2013-2024 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected final 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
-