Longs.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Longs |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | isBetween(Long
the start value (inclusive), expected not to be null. start, Long the end value (inclusive), expected not to be null. end)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given int to compare the actual value to. expected, Offset<Long> the given positive offset. offset)Implements org. |
| public SELF | Returns: this assertion object.the given int to compare the actual value to. expected, Offset<Long> the given positive offset. offset)Implements org. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Implements org. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. expected)Verifies that the actual value is equal to the given one. |
| public SELF | |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | isNegative()
Implements org. |
| public SELF | Returns: this assertion object.the given int to compare the actual value to. expected, Offset<Long> the given positive offset. offset)Implements org. |
| public SELF | Returns: this assertion object.the given int to compare the actual value to. expected, Offset<Long> the given positive offset. offset)Implements org. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Implements org. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Verifies that the actual value is not equal to the given one. |
| public SELF | isNotNegative()
Implements org. |
| public SELF | isNotPositive()
Implements org. |
| public SELF | isNotZero()
Implements org. |
| public SELF | |
| public SELF | isOne()
Implements org. |
| public SELF | isPositive()
Implements org. |
| public SELF | isStrictlyBetween(Long
the start value (exclusive), expected not to be null. start, Long the end value (exclusive), expected not to be null. end)Overrides org. Implements org. |
| public SELF | isZero()
Implements org. |
| public SELF | usingComparator(Comparator<? super Long>
the comparator to use for the incoming assertion checks. customComparator)Overrides org. Implements org. |
| public SELF | usingComparator(Comparator<? super Long>
the comparator to use for the incoming assertion checks. customComparator, String comparator description to be used in assertion error messages customComparatorDescription)Overrides org. Implements org. |
| public SELF | usingDefaultComparator()
Overrides org. Implements org. |
| longs | back to summary |
|---|---|
| pack-priv Longs longs
| |
| AbstractLongAssert | back to summary |
|---|---|
| protected AbstractLongAssert(Long actual, Class<?> selfType) | |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(Long start, Long end) Overrides org. Implements org. Verifies that the actual value is in [start, end] range (start included, end included). Example:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(long expected, Offset<Long> offset) Implements org. Verifies that the actual number is close to the given one within the given offset value. When abs(actual - expected) == offset value, the assertion:
Breaking change since 2.9.0/3.9.0: using Examples:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(Long expected, Offset<Long> offset) Implements org. Verifies that the actual number is close to the given one within the given offset value. When abs(actual - expected) == offset value, the assertion:
Breaking change since 2.9.0/3.9.0: using Examples:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(Long expected, Percentage percentage) Implements org. Verifies that the actual number is close to the given one within the given percentage. Example with long:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(long expected, Percentage percentage) Implements org. Verifies that the actual number is close to the given one within the given percentage. Example with long:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(long expected) Verifies that the actual value is equal to the given one. Example:
| |
| isEven | back to summary |
|---|---|
| public SELF isEven() Verifies that the actual value is even. Example:
| |
| isGreaterThan | back to summary |
|---|---|
| public SELF isGreaterThan(long other) Overrides org. Implements org. Verifies that the actual value is greater than the given one. Example:
| |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public SELF isGreaterThanOrEqualTo(long other) Overrides org. Implements org. Verifies that the actual value is greater than or equal to the given one. Example:
| |
| isLessThan | back to summary |
|---|---|
| public SELF isLessThan(long other) Overrides org. Implements org. Verifies that the actual value is less than the given one. Example:
| |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public SELF isLessThanOrEqualTo(long other) Overrides org. Implements org. Verifies that the actual value is less than or equal to the given one. Example:
| |
| isNegative | back to summary |
|---|---|
| public SELF isNegative() Implements org. Doc from org. Verifies that the actual value is negative. Example:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(long expected, Offset<Long> offset) Implements org. Verifies that the actual number is not close to the given one by less than the given offset. When abs(actual - expected) == offset value, the assertion:
Breaking change since 2.9.0/3.9.0: using Examples:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(Long expected, Offset<Long> offset) Implements org. Verifies that the actual number is not close to the given one by less than the given offset. When abs(actual - expected) == offset value, the assertion:
Breaking change since 2.9.0/3.9.0: using Examples:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(Long expected, Percentage percentage) Implements org. Verifies that the actual number is not close to the given one within the given percentage. Example with long:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(long expected, Percentage percentage) Implements org. Verifies that the actual number is not close to the given one within the given percentage. Example with long:
| |
| isNotEqualTo | back to summary |
|---|---|
| public SELF isNotEqualTo(long other) Verifies that the actual value is not equal to the given one. Example:
| |
| isNotNegative | back to summary |
|---|---|
| public SELF isNotNegative() Implements org. Doc from org. Verifies that the actual value is non negative (positive or equal zero). Example:
| |
| isNotPositive | back to summary |
|---|---|
| public SELF isNotPositive() Implements org. Doc from org. Verifies that the actual value is non positive (negative or equal zero). Example:
| |
| isNotZero | back to summary |
|---|---|
| public SELF isNotZero() Implements org. Doc from org. Verifies that the actual value is not equal to zero. Example:
| |
| isOdd | back to summary |
|---|---|
| public SELF isOdd() Verifies that the actual value is odd. Example:
| |
| isOne | back to summary |
|---|---|
| public SELF isOne() Implements org. Doc from org. Verifies that the actual value is equal to one. Example:
| |
| isPositive | back to summary |
|---|---|
| public SELF isPositive() Implements org. Doc from org. Verifies that the actual value is positive. Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(Long start, Long end) Overrides org. Implements org. Verifies that the actual value is in ]start, end[ range (start excluded, end excluded). Example:
| |
| isZero | back to summary |
|---|---|
| public SELF isZero() Implements org. Doc from org. Verifies that the actual value is equal to zero. Example:
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super Long> customComparator) Overrides org. Implements org. Doc from org. Use the given custom comparator instead of relying on actual type A equals method for incoming assertion checks. The custom comparator is bound to assertion instance, meaning that if a new assertion instance is created, the default comparison strategy will be used. Examples :
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super Long> customComparator, String customComparatorDescription) Overrides org. Implements org. Doc from org. Use the given custom comparator instead of relying on actual type A equals method for incoming assertion checks. The custom comparator is bound to assertion instance, meaning that if a new assertion instance is created, the default comparison strategy will be used. Examples :
| |
| usingDefaultComparator | back to summary |
|---|---|
| public SELF usingDefaultComparator() Overrides org. Implements org. Doc from org. Revert to standard comparison for the incoming assertion checks.
This method should be used to disable a custom comparison strategy set by calling
| |