Package tech.units.tck.tests.unit
Class UnitConversionTest
- java.lang.Object
-
- tech.units.tck.tests.unit.UnitConversionTest
-
@SpecVersion(spec="JSR 385", version="2.1.0") public class UnitConversionTest extends ObjectTests 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 Detail
-
UnitConversionTest
public UnitConversionTest()
-
-
Method Detail
-
testEnsureGotConverters
@SpecAssertion(section="4.2.3", id="423-A1") public void testEnsureGotConverters()Ensure at least one UnitConverter implementation is available/registered.
-
testUnitConverterEquals
@SpecAssertion(section="4.2.3", id="423-A2") public void testUnitConverterEquals()Test that UnitConverter implementations override equals.
-
testUnitConverterHashcode
@SpecAssertion(section="4.2.3", id="423-A3") public void testUnitConverterHashcode()Test that UnitConverter implementations override hashCode.
-
testUnitConverterInvert
@SpecAssertion(section="4.2.3", id="423-A4") public void testUnitConverterInvert()Ensure the inverse() method is implemented.
-
testUnitConverterIsIdentity
@SpecAssertion(section="4.2.3", id="423-A5") public void testUnitConverterIsIdentity()Ensure the isIdentity() operation is implemented.
-
testUnitConverterIsLinear
@SpecAssertion(section="4.2.3", id="423-A6") public void testUnitConverterIsLinear()Ensure the isLinear() operation is implemented.
-
testUnitConverterConvert
@SpecAssertion(section="4.2.3", id="423-A7") public void testUnitConverterConvert()Ensure the convert() operation is implemented.
-
testUnitConverterConvertWithDouble
@SpecAssertion(section="4.2.3", id="423-A8") public void testUnitConverterConvertWithDouble()Ensure the convert() operation is implemented.
-
testUnitConverterConcatenate
@SpecAssertion(section="4.2.3", id="423-A9") public void testUnitConverterConcatenate()Ensure the concatenate() operation is implemented.
-
testUnitConverterGetConversionSteps
@SpecAssertion(section="4.2.3", id="423-A10") public void testUnitConverterGetConversionSteps()Ensure the getConversionSteps() operation is implemented.
-
-