Package org.djunits.formatter
Class NumberFormatTest
java.lang.Object
org.djunits.formatter.NumberFormatTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidsetup()Setup correct locale for test.voidTest engineering formatting.voidTest fixed formatting with engineering fallback.voidTest fixed float formatting.voidTest fixed formatting with scientific fallback.voidTest format string.voidTest grouping separator.voidTest scientific formatting.voidTest uppercase and lowercase scientific exponent.voidTest variable-length formatting.
-
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.
-