Class DirectionTest

java.lang.Object
org.djunits.quantity.DirectionTest

class DirectionTest extends Object
DirectionTest tests the Direction absolute quantity class and its Reference handling.

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

    • DirectionTest

      DirectionTest()
  • Method Details

    • setup

      @BeforeEach final void setup()
      Setup correct locale for test.
    • testBasics

      @Test void testBasics()
      Test constructors, parsing, ofSi, instantiate, and siUnit.
    • testOperationsAndDisplayPropagation

      @Test void testOperationsAndDisplayPropagation()
      Test arithmetic with proper reference handling and display-unit propagation.
    • testReferencesAddGetAndOffsets

      @Test void testReferencesAddGetAndOffsets()
      Test the static Reference registry and chained reference offsets.