java.lang.Object
tech.units.tck.tests.quantity.QuantityInterfaceTest
Tests for The Quantity Interface
- Since:
- 1.0
- Version:
- 2.1, February 16, 2023
- Author:
- Werner Keil, Almas Shaikh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Test that Quantity implementations override asType method.void
Test that Quantity implementations override equals.void
Test that Quantity implementations override getScale.void
Test that Quantity implementations override getUnit.void
Test that Quantity implementations override getValue.void
Test that Quantity implementations override hashCode.void
Test that Quantity implementations are comparable.void
Test that Quantity implementations override to method.void
Test that Quantity implementations override inverse.void
Test that Quantity implementations override to method.void
Test that Quantity implementations override add.void
Test that Quantity implementations override divide with number as argument.void
Test that Quantity implementations override multiply with number as argument.void
Test that Quantity implementations override subtract.void
Test that Quantity implementations override divide.void
Test that Quantity implementations override multiply.
-
Constructor Details
-
QuantityInterfaceTest
public QuantityInterfaceTest()
-
-
Method Details
-
testQuantityCastAsType
Test that Quantity implementations override asType method. -
testQuantityEquals
Test that Quantity implementations override equals. -
testQuantityGetScale
Test that Quantity implementations override getScale. -
testQuantityGetUnit
Test that Quantity implementations override getUnit. -
testQuantityGetValue
Test that Quantity implementations override getValue. -
testQuantityHashCode
Test that Quantity implementations override hashCode. -
testQuantityIsEquivalentTo
Test that Quantity implementations override to method. -
testQuantityOp0Inverse
Test that Quantity implementations override inverse. -
testQuantityOp1Add
Test that Quantity implementations override add. -
testQuantityOp1MultiplyByNumber
Test that Quantity implementations override multiply with number as argument. -
testQuantityOp1DivideByNumber
Test that Quantity implementations override divide with number as argument. -
testQuantityOp1Subtract
Test that Quantity implementations override subtract. -
testQuantityOp2Divide
Test that Quantity implementations override divide. -
testQuantityOp2Multiply
Test that Quantity implementations override multiply. -
testQuantityOp0To
Test that Quantity implementations override to method. -
testQuantityIsComparable
Test that Quantity implementations are comparable.
-