Interface IntegerContract<T extends Number>
- Type Parameters:
T
- The number type being tested.
- All Superinterfaces:
ContractSupport<T>
,IntegerSupport<T>
,NumberSupport<T>
,ProviderSupport<T>
,SupportedMethods
Test suite for classes that implement the
Integer
interface.- Since:
- 1.0.0
- Author:
- evanbergstrom
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Tests that the implementation of theNumber.doubleValue()
method works for various values.default void
Tests that the implementation of theNumber.floatValue()
method works for various values.default void
Tests that the implementation of theNumber.intValue()
method works for various values.default void
Tests that the implementation of theNumber.longValue()
method works for various values.Methods inherited from interface org.soliscode.test.contract.support.IntegerSupport
provider
Methods inherited from interface org.soliscode.test.SupportedMethods
supportsMethod
-
Method Details
-
testIntValue
@Test @DisplayName("The intValue() function works for various values.") default void testIntValue()Tests that the implementation of theNumber.intValue()
method works for various values. -
testLongValue
@Test @DisplayName("The longValue() function works for various values.") default void testLongValue()Tests that the implementation of theNumber.longValue()
method works for various values. -
testFloatValue
@Test @DisplayName("The floatValue() function works for various values.") default void testFloatValue()Tests that the implementation of theNumber.floatValue()
method works for various values. -
testDoubleValue
@Test @DisplayName("The doubleValue() function works for various values.") default void testDoubleValue()Tests that the implementation of theNumber.doubleValue()
method works for various values.
-