Class MatrixFormatTest

java.lang.Object
org.djunits.formatter.MatrixFormatTest

public class MatrixFormatTest extends Object
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 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.