Package tech.units.tck.tests.quantity
Class QuantityInterfaceTest
java.lang.Object
tech.units.tck.tests.quantity.QuantityInterfaceTest
@SpecVersion(spec="JSR 385",
version="2.1.1")
public class QuantityInterfaceTest
extends Object
Tests for The Quantity Interface
- Since:
- 1.0
- Version:
- 2.0, November 15, 2020
- Author:
- Werner Keil, Almas Shaikh
-
Constructor Summary
Constructors Constructor Description QuantityInterfaceTest() -
Method Summary
Modifier and Type Method Description voidtestQuantityCastAsType()Test that Quantity implementations override asType method.voidtestQuantityEquals()Test that Quantity implementations override equals.voidtestQuantityGetScale()Test that Quantity implementations override getScale.voidtestQuantityGetUnit()Test that Quantity implementations override getUnit.voidtestQuantityGetValue()Test that Quantity implementations override getValue.voidtestQuantityHashCode()Test that Quantity implementations override hashCode.voidtestQuantityIsEquivalentTo()Test that Quantity implementations override to method.voidtestQuantityOp0Inverse()Test that Quantity implementations override inverse.voidtestQuantityOp0To()Test that Quantity implementations override to method.voidtestQuantityOp1Add()Test that Quantity implementations override add.voidtestQuantityOp1DivideByNumber()Test that Quantity implementations override divide with number as argument.voidtestQuantityOp1MultiplyByNumber()Test that Quantity implementations override multiply with number as argument.voidtestQuantityOp1Subtract()Test that Quantity implementations override subtract.voidtestQuantityOp2Divide()Test that Quantity implementations override divide.voidtestQuantityOp2Multiply()Test that Quantity implementations override multiply.
-
Constructor Details
-
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.
-