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-2025 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcheckUnitNameAndAbbreviation(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- expected name in the resourcesexpectedAbbreviation- expected abbreviation in the resources
-