public class Longs extends Numbers<java.lang.Long>
Long
s.Modifier and Type | Field and Description |
---|---|
private static Longs |
INSTANCE |
comparisonStrategy, failures
Constructor and Description |
---|
Longs() |
Longs(ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
assertIsCloseTo(AssertionInfo info,
java.lang.Long actual,
java.lang.Long expected,
Offset<java.lang.Long> offset)
Asserts that the actual value is close to the offset.
|
void |
assertIsCloseToPercentage(AssertionInfo info,
java.lang.Long actual,
java.lang.Long other,
Percentage percentage)
Asserts that the actual value is close to the an offset expressed as an percentage value.
|
static Longs |
instance()
Returns the singleton instance of this class.
|
protected java.lang.Long |
zero() |
absDiff, assertIsBetween, 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 Longs INSTANCE
Longs()
public Longs(ComparisonStrategy comparisonStrategy)
public static Longs instance()
public void assertIsCloseTo(AssertionInfo info, java.lang.Long actual, java.lang.Long expected, Offset<java.lang.Long> offset)
Numbers
assertIsCloseTo
in class Numbers<java.lang.Long>
info
- contains information about the assertion.actual
- the actual value.expected
- the expected value.offset
- the given positive offset.public void assertIsCloseToPercentage(AssertionInfo info, java.lang.Long actual, java.lang.Long other, Percentage percentage)
Numbers
assertIsCloseToPercentage
in class Numbers<java.lang.Long>
info
- contains information about the assertion.actual
- the actual value.other
- the expected value.percentage
- the given percentage between 0 and 100.