Class NumberFormatTest

java.lang.Object
org.djunits.formatter.NumberFormatTest

public class NumberFormatTest extends Object
Tests all QuantityFormat settings that are related to formating the number.

Copyright (c) 2026-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
  • Constructor Details

    • NumberFormatTest

      public NumberFormatTest()
  • Method Details

    • setup

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

      @Test public void testVariableLength()
      Test variable-length formatting.
    • testFixedFloat

      @Test public void testFixedFloat()
      Test fixed float formatting.
    • testScientificAlways

      @Test public void testScientificAlways()
      Test scientific formatting.
    • testEngineeringAlways

      @Test public void testEngineeringAlways()
      Test engineering formatting.
    • testGroupingSeparator

      @Test public void testGroupingSeparator()
      Test grouping separator.
    • testUpperLowerExponent

      @Test public void testUpperLowerExponent()
      Test uppercase and lowercase scientific exponent.
    • testFixedScientificFallback

      @Test public void testFixedScientificFallback()
      Test fixed formatting with scientific fallback.
    • testFixedEngineeringFallback

      @Test public void testFixedEngineeringFallback()
      Test fixed formatting with engineering fallback.
    • testFormatString

      @Test public void testFormatString()
      Test format string.