Package org.djunits.formatter
Class MatrixFormatTest
java.lang.Object
org.djunits.formatter.MatrixFormatTest
Tests all
MatrixFormat settings and their effect on matrix formatting.
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 prefix separator between number and unit, and postfix after the unit for an absolute matrix.voidTest absolute matrix formatting with prefix separator between number and reference, and postfix after the reference.voidTest the setting and resetting of defaults.voidTest format settings for the matrix.voidTest formatting as SI.
-
Constructor Details
-
MatrixFormatTest
public MatrixFormatTest()
-
-
Method Details
-
setup
@BeforeEach final void setup()Setup correct locale for test. -
testMatrixFormat
@Test public void testMatrixFormat()Test format settings for the matrix. -
testAbsMatrixPrefixPostfix
@Test public void testAbsMatrixPrefixPostfix()Test prefix separator between number and unit, and postfix after the unit for an absolute matrix. -
testAbsReferencePrefixPostfix
@Test public void testAbsReferencePrefixPostfix()Test absolute matrix formatting with prefix separator between number and reference, and postfix after the reference. -
testSiFormatting
@Test public void testSiFormatting()Test formatting as SI. -
testDefaults
@Test public void testDefaults()Test the setting and resetting of defaults.
-