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

public abstract class AbstractUnitTest<U extends UnitInterface<U,?>> extends Object
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 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 check
      expectedName - expected name in the resources
      expectedAbbreviation - expected abbreviation in the resources