Package org.djunits.quantity
Class DirectionTest
java.lang.Object
org.djunits.quantity.DirectionTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidsetup()Setup correct locale for test.(package private) voidTest constructors, parsing, ofSi, instantiate, and siUnit.(package private) voidTest arithmetic with proper reference handling and display-unit propagation.(package private) voidTest the static Reference registry and chained reference offsets.
-
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.
-