public class Shorts extends Numbers<java.lang.Short>
Shorts.| Modifier and Type | Field and Description |
|---|---|
private static Shorts |
INSTANCE |
comparisonStrategy, failures| Constructor and Description |
|---|
Shorts() |
Shorts(ComparisonStrategy comparisonStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertIsCloseTo(AssertionInfo info,
java.lang.Short actual,
java.lang.Short expected,
Offset<java.lang.Short> offset)
Asserts that the actual value is close to the offset.
|
void |
assertIsCloseToPercentage(AssertionInfo info,
java.lang.Short actual,
java.lang.Short other,
Percentage percentage)
Asserts that the actual value is close to the an offset expressed as an percentage value.
|
static Shorts |
instance()
Returns the singleton instance of this class.
|
protected java.lang.Short |
zero() |
absDiff, assertIsBetween, assertIsNegative, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsPositive, assertIsStrictlyBetween, assertIsZero, isCloseToPercentageCommonChecksareEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator, resetFailures, setFailuresprivate static final Shorts INSTANCE
Shorts()
public Shorts(ComparisonStrategy comparisonStrategy)
public static Shorts instance()
public void assertIsCloseTo(AssertionInfo info, java.lang.Short actual, java.lang.Short expected, Offset<java.lang.Short> offset)
NumbersassertIsCloseTo in class Numbers<java.lang.Short>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.Short actual, java.lang.Short other, Percentage percentage)
NumbersassertIsCloseToPercentage in class Numbers<java.lang.Short>info - contains information about the assertion.actual - the actual value.other - the expected value.percentage - the given percentage between 0 and 100.