Package org.djunits.formatter
Class VectorFormatTest
java.lang.Object
org.djunits.formatter.VectorFormatTest
Tests all
VectorFormat settings and their effect on vector 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 absolute column vector formatting with prefix separator between number and reference, and postfix after the reference.voidTest absolute row vector formatting with prefix separator between number and reference, and postfix after the reference.voidTest prefix separator between number and unit, and postfix after the unit for an absolute column vector.voidTest prefix separator between number and unit, and postfix after the unit for an absolute row vector.voidTest format settings for the column-as-row vector.voidTest format settings for the column vector.voidTest the setting and resetting of defaults for a Col vector.voidTest the setting and resetting of defaults for a Row vector.voidTest format settings for the row-as-column vector.voidTest format settings for the row vector.voidTest formatting as SI for column vector.voidTest formatting as SI for row vector.
-
Constructor Details
-
VectorFormatTest
public VectorFormatTest()
-
-
Method Details
-
setup
@BeforeEach final void setup()Setup correct locale for test. -
testRowVectorFormat
@Test public void testRowVectorFormat()Test format settings for the row vector. -
testColVectorFormat
@Test public void testColVectorFormat()Test format settings for the column vector. -
testColAsRowVectorFormat
@Test public void testColAsRowVectorFormat()Test format settings for the column-as-row vector. -
testRowAsColVectorFormat
@Test public void testRowAsColVectorFormat()Test format settings for the row-as-column vector. -
testAbsVectorColPrefixPostfix
@Test public void testAbsVectorColPrefixPostfix()Test prefix separator between number and unit, and postfix after the unit for an absolute column vector. -
testAbsVectorRowPrefixPostfix
@Test public void testAbsVectorRowPrefixPostfix()Test prefix separator between number and unit, and postfix after the unit for an absolute row vector. -
testAbsReferencePrefixPostfixCol
@Test public void testAbsReferencePrefixPostfixCol()Test absolute column vector formatting with prefix separator between number and reference, and postfix after the reference. -
testAbsReferencePrefixPostfixRow
@Test public void testAbsReferencePrefixPostfixRow()Test absolute row vector formatting with prefix separator between number and reference, and postfix after the reference. -
testSiFormattingCol
@Test public void testSiFormattingCol()Test formatting as SI for column vector. -
testSiFormattingRow
@Test public void testSiFormattingRow()Test formatting as SI for row vector. -
testDefaultsRow
@Test public void testDefaultsRow()Test the setting and resetting of defaults for a Row vector. -
testDefaultsCol
@Test public void testDefaultsCol()Test the setting and resetting of defaults for a Col vector.
-