public class Integers extends Numbers<java.lang.Integer>
Integer
s.Modifier and Type | Field and Description |
---|---|
private static Integers |
INSTANCE |
comparisonStrategy, failures
Constructor and Description |
---|
Integers() |
Integers(ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
assertIsCloseTo(AssertionInfo info,
java.lang.Integer actual,
java.lang.Integer expected,
Offset<java.lang.Integer> offset)
Asserts that the actual value is close to the offset.
|
static Integers |
instance()
Returns the singleton instance of this class based on
StandardComparisonStrategy . |
protected java.lang.Integer |
zero() |
absDiff, assertIsBetween, assertIsCloseToPercentage, assertIsNegative, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsPositive, assertIsStrictlyBetween, assertIsZero, isCloseToPercentageCommonChecks
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator, resetFailures, setFailures
private static final Integers INSTANCE
Integers()
public Integers(ComparisonStrategy comparisonStrategy)
public static Integers instance()
StandardComparisonStrategy
.StandardComparisonStrategy
.public void assertIsCloseTo(AssertionInfo info, java.lang.Integer actual, java.lang.Integer expected, Offset<java.lang.Integer> offset)
Numbers
assertIsCloseTo
in class Numbers<java.lang.Integer>
info
- contains information about the assertion.actual
- the actual value.expected
- the expected value.offset
- the given positive offset.