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-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 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 - String; expected name in the resources
      expectedAbbreviation - String; expected abbreviation in the resources