Package tech.units.tck.tests.unit
Class UnitConversionTest
java.lang.Object
tech.units.tck.tests.unit.UnitConversionTest
@SpecVersion(spec="JSR 385", version="2.1.1") public class UnitConversionTest extends Object
Tests for Unit Conversion
- Since:
- 1.0
- Version:
- 2.0, November 15, 2020
- Author:
- Werner Keil, Almas Shaikh
-
Constructor Summary
Constructors Constructor Description UnitConversionTest()
-
Method Summary
Modifier and Type Method Description void
testEnsureGotConverters()
Ensure at least one UnitConverter implementation is available/registered.void
testUnitConverterConcatenate()
Ensure the concatenate() operation is implemented.void
testUnitConverterConvert()
Ensure the convert() operation is implemented.void
testUnitConverterConvertWithDouble()
Ensure the convert() operation is implemented.void
testUnitConverterEquals()
Test that UnitConverter implementations override equals.void
testUnitConverterGetConversionSteps()
Ensure the getConversionSteps() operation is implemented.void
testUnitConverterHashcode()
Test that UnitConverter implementations override hashCode.void
testUnitConverterInvert()
Ensure the inverse() method is implemented.void
testUnitConverterIsIdentity()
Ensure the isIdentity() operation is implemented.void
testUnitConverterIsLinear()
Ensure the isLinear() operation is implemented.
-
Constructor Details
-
UnitConversionTest
public UnitConversionTest()
-
-
Method Details
-
testEnsureGotConverters
Ensure at least one UnitConverter implementation is available/registered. -
testUnitConverterEquals
Test that UnitConverter implementations override equals. -
testUnitConverterHashcode
Test that UnitConverter implementations override hashCode. -
testUnitConverterInvert
Ensure the inverse() method is implemented. -
testUnitConverterIsIdentity
Ensure the isIdentity() operation is implemented. -
testUnitConverterIsLinear
Ensure the isLinear() operation is implemented. -
testUnitConverterConvert
Ensure the convert() operation is implemented. -
testUnitConverterConvertWithDouble
Ensure the convert() operation is implemented. -
testUnitConverterConcatenate
Ensure the concatenate() operation is implemented. -
testUnitConverterGetConversionSteps
Ensure the getConversionSteps() operation is implemented.
-