Class QuantityInterfaceTest

java.lang.Object
tech.units.tck.tests.quantity.QuantityInterfaceTest

@SpecVersion(spec="JSR 385", version="2.2") public class QuantityInterfaceTest extends Object
Tests for The Quantity Interface
Since:
1.0
Version:
2.1, February 16, 2023
Author:
Werner Keil, Almas Shaikh
  • Constructor Details

  • Method Details

    • testQuantityCastAsType

      @SpecAssertion(section="4.3.1", id="431-A1") public void testQuantityCastAsType()
      Test that Quantity implementations override asType method.
    • testQuantityEquals

      @SpecAssertion(section="4.3.1", id="431-A2") public void testQuantityEquals()
      Test that Quantity implementations override equals.
    • testQuantityGetScale

      @SpecAssertion(section="4.3.1", id="431-A3") public void testQuantityGetScale()
      Test that Quantity implementations override getScale.
    • testQuantityGetUnit

      @SpecAssertion(section="4.3.1", id="431-A4") public void testQuantityGetUnit()
      Test that Quantity implementations override getUnit.
    • testQuantityGetValue

      @SpecAssertion(section="4.3.1", id="431-A5") public void testQuantityGetValue()
      Test that Quantity implementations override getValue.
    • testQuantityHashCode

      @SpecAssertion(section="4.3.1", id="431-A6") public void testQuantityHashCode()
      Test that Quantity implementations override hashCode.
    • testQuantityIsEquivalentTo

      @SpecAssertion(section="4.3.1", id="431-A7") public void testQuantityIsEquivalentTo()
      Test that Quantity implementations override to method.
    • testQuantityOp0Inverse

      @SpecAssertion(section="4.3.1", id="431-A8") public void testQuantityOp0Inverse()
      Test that Quantity implementations override inverse.
    • testQuantityOp1Add

      @SpecAssertion(section="4.3.1.1", id="4311-A1") public void testQuantityOp1Add()
      Test that Quantity implementations override add.
    • testQuantityOp1MultiplyByNumber

      @SpecAssertion(section="4.3.1.1", id="4311-A4") public void testQuantityOp1MultiplyByNumber()
      Test that Quantity implementations override multiply with number as argument.
    • testQuantityOp1DivideByNumber

      @SpecAssertion(section="4.3.1.1", id="4311-A5") public void testQuantityOp1DivideByNumber()
      Test that Quantity implementations override divide with number as argument.
    • testQuantityOp1Subtract

      @SpecAssertion(section="4.3.1.1", id="4311-A6") public void testQuantityOp1Subtract()
      Test that Quantity implementations override subtract.
    • testQuantityOp2Divide

      @SpecAssertion(section="4.3.1.2", id="4312-A1") public void testQuantityOp2Divide()
      Test that Quantity implementations override divide.
    • testQuantityOp2Multiply

      @SpecAssertion(section="4.3.1.2", id="4312-A2") public void testQuantityOp2Multiply()
      Test that Quantity implementations override multiply.
    • testQuantityOp0To

      @SpecAssertion(section="4.3.1", id="431-A9") public void testQuantityOp0To()
      Test that Quantity implementations override to method.
    • testQuantityIsComparable

      @SpecAssertion(section="4.3.1", id="431-A10") public void testQuantityIsComparable()
      Test that Quantity implementations are comparable.