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 voidtestEnsureGotConverters()Ensure at least one UnitConverter implementation is available/registered.voidtestUnitConverterConcatenate()Ensure the concatenate() operation is implemented.voidtestUnitConverterConvert()Ensure the convert() operation is implemented.voidtestUnitConverterConvertWithDouble()Ensure the convert() operation is implemented.voidtestUnitConverterEquals()Test that UnitConverter implementations override equals.voidtestUnitConverterGetConversionSteps()Ensure the getConversionSteps() operation is implemented.voidtestUnitConverterHashcode()Test that UnitConverter implementations override hashCode.voidtestUnitConverterInvert()Ensure the inverse() method is implemented.voidtestUnitConverterIsIdentity()Ensure the isIdentity() operation is implemented.voidtestUnitConverterIsLinear()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.
-