Class MeasurementSystemTest
java.lang.Object
test.MeasurementSystemTest
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:
testConvertToDisplayString()- Tests the generation of the display stringtestFromDisplayString()- Tests finding a measurement system by its display stringtestConvertLength()- Tests the conversion of length between systemstestConvertWeight()- Tests the conversion of weight between systems
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests the conversion of length between systems.voidTests the generation of the display string.voidTests the conversion of weight between systems.voidTests finding a measurement system by its display string.
-
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.
-