@SpecVersion(spec="JSR 385",
version="2.0.0")
public class UnitInterfaceTest
extends Object
| Constructor and Description |
|---|
UnitInterfaceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testEquals()
Test that Unit implementations override equals.
|
void |
testGetBaseUnits()
Test that Unit implementations contain getBaseUnits
|
void |
testGetDimension()
Test that Unit implementations contain getters
|
void |
testGetName()
Test that Unit implementations contain getters
|
void |
testGetSymbol()
Test that Unit implementations contain getters
|
void |
testGetSystemUnit()
Test that Unit implementations contain getSystemUnit
|
void |
testHashcode()
Test that Unit implementations override hashCode.
|
void |
testToString()
Test that Unit implementations override toString.
|
void |
testUnit42121Alternate()
Ensure the alternate() operation is implemented.
|
void |
testUnit42121Divide()
Ensure the divide() operation is implemented.
|
void |
testUnit42121DivideByDouble()
Ensure the divide() operation is implemented.
|
void |
testUnit42121Multiply()
Ensure the multiply() operation is implemented.
|
void |
testUnit42121MultiplyByDouble()
Ensure the multiply() operation is implemented.
|
void |
testUnit42121Shift()
Ensure the shift() operation is implemented.
|
void |
testUnit42122Pow()
Ensure the pow() operation is implemented.
|
void |
testUnit42122Root()
Ensure the root() operation is implemented.
|
void |
testUnit42122Transform()
Ensure the transform() operation is implemented.
|
void |
testUnit42123Inverse()
Ensure the inverse() operation is implemented.
|
void |
testUnit422IsCompatible()
Ensure the isCompatible() operation is implemented.
|
void |
testUnit423AsType()
Ensure the asType() operation is implemented.
|
void |
testUnit423GetConverterTo()
Ensure the getConverterTo() operation is implemented.
|
void |
testUnit423GetConverterToAny()
Ensure the getConverterToAny() operation is implemented.
|
public UnitInterfaceTest()
@SpecAssertion(section="4.2.1",
id="421-A1")
public void testEquals()
@SpecAssertion(section="4.2.1",
id="421-A2")
public void testGetDimension()
@SpecAssertion(section="4.2.1",
id="421-A3")
public void testGetSystemUnit()
@SpecAssertion(section="4.2.1",
id="421-A4")
public void testGetBaseUnits()
@SpecAssertion(section="4.2.1",
id="421-A5")
public void testGetName()
@SpecAssertion(section="4.2.1",
id="421-A6")
public void testGetSymbol()
@SpecAssertion(section="4.2.1",
id="421-A7")
public void testHashcode()
@SpecAssertion(section="4.2.1",
id="421-A8")
public void testToString()
@SpecAssertion(section="4.2.1.2",
id="42121-A1")
public void testUnit42121Shift()
@SpecAssertion(section="4.2.1.2",
id="42121-A2")
public void testUnit42121Multiply()
@SpecAssertion(section="4.2.1.2",
id="42121-A3")
public void testUnit42121Divide()
@SpecAssertion(section="4.2.1.2",
id="42121-A4")
public void testUnit42121MultiplyByDouble()
@SpecAssertion(section="4.2.1.2",
id="42121-A5")
public void testUnit42121DivideByDouble()
@SpecAssertion(section="4.2.1.2",
id="42121-A6")
public void testUnit42121Alternate()
@SpecAssertion(section="4.2.1.2",
id="42122-A1")
public void testUnit42122Pow()
@SpecAssertion(section="4.2.1.2",
id="42122-A2")
public void testUnit42122Root()
@SpecAssertion(section="4.2.1.2",
id="42122-A3")
public void testUnit42122Transform()
@SpecAssertion(section="4.2.1.2",
id="42123-A1")
public void testUnit42123Inverse()
@SpecAssertion(section="4.2.2",
id="422-A1")
public void testUnit422IsCompatible()
@SpecAssertion(section="4.2.2",
id="422-A2")
public void testUnit423AsType()
@SpecAssertion(section="4.2.3",
id="423-A1")
public void testUnit423GetConverterTo()
@SpecAssertion(section="4.2.3",
id="423-A2")
public void testUnit423GetConverterToAny()
Copyright © 2005–2018 Units of Measurement project. All rights reserved.