Package tech.units.tck.tests.unit
Class UnitInterfaceTest
java.lang.Object
tech.units.tck.tests.unit.UnitInterfaceTest
@SpecVersion(spec="JSR 385",
version="2.1.1")
public class UnitInterfaceTest
extends Object
Testing the Unit Interface
- Since:
- 1.0
- Version:
- 2.1.1, December 2, 2020
- Author:
- Werner Keil, Almas Shaikh
-
Constructor Summary
Constructors Constructor Description UnitInterfaceTest() -
Method Summary
Modifier and Type Method Description voidtestEquals()Test that Unit implementations override equals.voidtestGetBaseUnits()Test that Unit implementations contain getBaseUnitsvoidtestGetDimension()Test that Unit implementations contain gettersvoidtestGetName()Test that Unit implementations contain gettersvoidtestGetSymbol()Test that Unit implementations contain gettersvoidtestGetSystemUnit()Test that Unit implementations contain getSystemUnitvoidtestHashcode()Test that Unit implementations override hashCode.voidtestIsEquivalentTo()Test that Unit implementations implement isEquivalentTo.voidtestToString()Test that Unit implementations override toString.voidtestUnit42121A1_Alternate()Ensure the alternate() operation is implemented.voidtestUnit42121A10_ShiftByNumber()Ensure the shift(Number) operation is implemented.voidtestUnit42121A2_Divide()Ensure the divide(Unit) operation is implemented.voidtestUnit42121A3_DivideByDouble()Ensure the divide(double) operation is implemented.voidtestUnit42121A4_DivideByNumber()Ensure the divide(Number) operation is implemented.voidtestUnit42121A5_Multiply()Ensure the multiply() operation is implemented.voidtestUnit42121A6_MultiplyByDouble()Ensure the multiply(double) operation is implemented.voidtestUnit42121A7_MultiplyByNumber()Ensure the multiply(Number) operation is implemented.voidtestUnit42121A8_Prefix()Ensure the prefix() operation is implemented.voidtestUnit42121A9_ShiftByDouble()Ensure the shift() operation is implemented.voidtestUnit42122Pow()Ensure the pow() operation is implemented.voidtestUnit42122Root()Ensure the root() operation is implemented.voidtestUnit42122Transform()Ensure the transform() operation is implemented.voidtestUnit42123Inverse()Ensure the inverse() operation is implemented.voidtestUnit4221IsCompatible()Ensure the isCompatible() operation is implemented.voidtestUnit4222AsType()Ensure the asType() operation is implemented.voidtestUnit4223GetConverterTo()Ensure the getConverterTo() operation is implemented.voidtestUnit4224GetConverterToAny()Ensure the getConverterToAny() operation is implemented.
-
Constructor Details
-
UnitInterfaceTest
public UnitInterfaceTest()
-
-
Method Details
-
testEquals
Test that Unit implementations override equals. -
testGetDimension
Test that Unit implementations contain getters -
testGetSystemUnit
Test that Unit implementations contain getSystemUnit -
testGetBaseUnits
Test that Unit implementations contain getBaseUnits -
testGetName
Test that Unit implementations contain getters -
testGetSymbol
Test that Unit implementations contain getters -
testHashcode
Test that Unit implementations override hashCode. -
testIsEquivalentTo
Test that Unit implementations implement isEquivalentTo. -
testToString
Test that Unit implementations override toString. -
testUnit42121A1_Alternate
Ensure the alternate() operation is implemented. -
testUnit42121A2_Divide
Ensure the divide(Unit) operation is implemented. -
testUnit42121A3_DivideByDouble
Ensure the divide(double) operation is implemented. -
testUnit42121A4_DivideByNumber
Ensure the divide(Number) operation is implemented. -
testUnit42121A5_Multiply
Ensure the multiply() operation is implemented. -
testUnit42121A6_MultiplyByDouble
Ensure the multiply(double) operation is implemented. -
testUnit42121A7_MultiplyByNumber
Ensure the multiply(Number) operation is implemented. -
testUnit42121A8_Prefix
Ensure the prefix() operation is implemented.- Since:
- 2.0
-
testUnit42121A9_ShiftByDouble
Ensure the shift() operation is implemented. -
testUnit42121A10_ShiftByNumber
Ensure the shift(Number) operation is implemented. -
testUnit42122Pow
Ensure the pow() operation is implemented. -
testUnit42122Root
Ensure the root() operation is implemented. -
testUnit42122Transform
Ensure the transform() operation is implemented. -
testUnit42123Inverse
Ensure the inverse() operation is implemented. -
testUnit4221IsCompatible
Ensure the isCompatible() operation is implemented. -
testUnit4222AsType
Ensure the asType() operation is implemented. -
testUnit4223GetConverterTo
Ensure the getConverterTo() operation is implemented. -
testUnit4224GetConverterToAny
Ensure the getConverterToAny() operation is implemented.
-