Class UnitConversionTest

java.lang.Object
tech.units.tck.tests.unit.UnitConversionTest

@SpecVersion(spec="JSR 385", version="2.2") public class UnitConversionTest extends Object
Tests for Unit Conversion
Since:
1.0
Version:
2.2, October 4, 2023
Author:
Werner Keil, Almas Shaikh
  • Constructor Details

  • Method Details

    • 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.