Package org.djunits.unit.units
Class AbstractUnitTest<U extends UnitInterface<U,?>>
java.lang.Object
org.djunits.unit.units.AbstractUnitTest<U>
- Type Parameters:
U- Make the test specific for this sub class of Unit
- Direct Known Subclasses:
AbstractLinearUnitTest
Test for AbstractUnit.
Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.
- Author:
- Alexander Verbraeck (specifications); Test implementation by Copilot.
-
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
-