@SpecVersion(spec="JSR 385",
version="2.0.0")
public class QuantityInterfaceTest
extends Object
| Constructor and Description |
|---|
QuantityInterfaceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testQuantityCastAsType()
Test that Quantity implementations override asType method.
|
void |
testQuantityEquals()
Test that Quantity implementations override equals.
|
void |
testQuantityGetUnit()
Test that Quantity implementations override getUnit.
|
void |
testQuantityGetValue()
Test that Quantity implementations override getValue.
|
void |
testQuantityHashcode()
Test that Quantity implementations override hashCode.
|
void |
testQuantityOp1Add()
Test that Quantity implementations override add.
|
void |
testQuantityOp1DivideByNumber()
Test that Quantity implementations override divide with number as argument.
|
void |
testQuantityOp1MultiplyByNumber()
Test that Quantity implementations override multiply with number as argument.
|
void |
testQuantityOp1Subtract()
Test that Quantity implementations override subtract.
|
void |
testQuantityOp2Divide()
Test that Quantity implementations override divide.
|
void |
testQuantityOp2Multiply()
Test that Quantity implementations override multiply.
|
void |
testQuantityOp2To()
Test that Quantity implementations override to method.
|
void |
testQuantityOp3Inverse()
Test that Quantity implementations override getUnit.
|
public QuantityInterfaceTest()
@SpecAssertion(section="4.4.1",
id="441-A1")
public void testQuantityEquals()
@SpecAssertion(section="4.4.1",
id="441-A2")
public void testQuantityGetUnit()
@SpecAssertion(section="4.4.1",
id="441-A3")
public void testQuantityGetValue()
@SpecAssertion(section="4.4.1",
id="441-A4")
public void testQuantityHashcode()
@SpecAssertion(section="4.4.1",
id="441-A5")
public void testQuantityCastAsType()
@SpecAssertion(section="4.4.1.1",
id="4411-A1")
public void testQuantityOp1Add()
@SpecAssertion(section="4.4.1.2",
id="4412-A1")
public void testQuantityOp2Multiply()
@SpecAssertion(section="4.4.1.2",
id="4412-A2")
public void testQuantityOp2Divide()
@SpecAssertion(section="4.4.1.1",
id="4411-A4")
public void testQuantityOp1MultiplyByNumber()
@SpecAssertion(section="4.4.1.1",
id="4411-A5")
public void testQuantityOp1DivideByNumber()
@SpecAssertion(section="4.4.1.1",
id="4411-A6")
public void testQuantityOp1Subtract()
@SpecAssertion(section="4.4.1.2",
id="4412-A3")
public void testQuantityOp2To()
@SpecAssertion(section="4.4.1.3",
id="441-A8")
public void testQuantityOp3Inverse()
Copyright © 2005–2018 Units of Measurement project. All rights reserved.