Class MeasurementSystemTest

java.lang.Object
test.MeasurementSystemTest

public class MeasurementSystemTest extends Object
Provides test cases for the MeasurementSystem enum.

Tests the methods for retrieving unit symbols, converting between measurement systems, and finding a MeasurementSystem by its display string.

Contains the following test cases:

See Also:
  • Constructor Details

    • MeasurementSystemTest

      public MeasurementSystemTest()
  • Method Details

    • testConvertToDisplayString

      @Test public void testConvertToDisplayString()
      Tests the generation of the display string.
    • testFromDisplayString

      @Test public void testFromDisplayString()
      Tests finding a measurement system by its display string.
    • testConvertLength

      @Test public void testConvertLength()
      Tests the conversion of length between systems.
    • testConvertWeight

      @Test public void testConvertWeight()
      Tests the conversion of weight between systems.