Class AbsoluteQuantityTest

java.lang.Object
org.djunits.quantity.def.AbsoluteQuantityTest

public class AbsoluteQuantityTest extends Object
Unit tests for the abstract AbsoluteQuantity API using Position and its nested Position.Reference.

Goals and coverage:

Deliberately out of scope: We do not re-test domain specifics of Position/Length. Those are covered by their dedicated tests; here, Position provides a concrete vehicle to exercise the abstract API.

Locale pinning: The suite pins Locale.Category.FORMAT to Locale.US for deterministic formatting/parsing behavior; the original locale is restored afterwards.

Reference registry hygiene: Each created Position.Reference is unregistered in cleanup() to avoid cross-test pollution of the static per-class registry. 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.