BigIntegers.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv BigIntegers |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. start, BigInteger the end value (inclusive), expected not to be null. end)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Offset<BigInteger> 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)Same as |
| public SELF | Returns: this assertion object.the expected value expected)Same as |
| public SELF | Returns: this assertion object.the expected value expected)Same as |
| public SELF | Returns: this assertion object.Implements org. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Offset<BigInteger> 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.Implements org. |
| public SELF | Returns: this assertion object.Implements org. |
| public SELF | Returns: this assertion object.Implements org. |
| public SELF | Returns: this assertion object.Implements org. |
| public SELF | Returns: this assertion object.Implements org. |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. start, BigInteger the end value (exclusive), expected not to be null. end)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.Implements org. |
| public SELF | usingComparator(Comparator<? super BigInteger>
the comparator to use for the incoming assertion checks. customComparator)Overrides org. Implements org. |
| public SELF | usingComparator(Comparator<? super BigInteger>
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. |
| bigIntegers | back to summary |
|---|---|
| pack-priv BigIntegers bigIntegers
| |
| AbstractBigIntegerAssert | back to summary |
|---|---|
| protected AbstractBigIntegerAssert(BigInteger actual, Class<?> selfType) | |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(BigInteger start, BigInteger end) Overrides org. Implements org. Verifies that the actual value is in [start, end] range (start and end included). Example:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(BigInteger expected, Offset<BigInteger> offset) Implements org. Verifies that the actual number is close to the given one within the given offset. When abs(actual - expected) == offset value, the assertion:
Assertions#byLessThan(BigInteger) implies a strict comparison,
use Assertions#within(BigInteger) to get the old behavior.
Example:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(BigInteger expected, Percentage percentage) Implements org. Verifies that the actual number is close to the given one within the given percentage. Example with BigInteger:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(String expected) Same as Example:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(int expected) Same as Example:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(long expected) Same as Example:
| |
| isNegative | back to summary |
|---|---|
| public SELF isNegative() Implements org. Verifies that the actual value is negative. Example:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(BigInteger expected, Offset<BigInteger> 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(BigInteger expected, Percentage percentage) Implements org. Verifies that the actual number is not close to the given one by the given percentage. Example with BigInteger:
| |
| isNotNegative | back to summary |
|---|---|
| public SELF isNotNegative() Implements org. Verifies that the actual value is non negative (positive or equal zero). Example:
| |
| isNotPositive | back to summary |
|---|---|
| public SELF isNotPositive() Implements org. Verifies that the actual value is non positive (negative or equal zero). Example:
| |
| isNotZero | back to summary |
|---|---|
| public SELF isNotZero() Implements org. Verifies that the actual value is not equal to zero. Example:
| |
| isOne | back to summary |
|---|---|
| public SELF isOne() Implements org. Verifies that the actual value is equal to one. Example:
| |
| isPositive | back to summary |
|---|---|
| public SELF isPositive() Implements org. Verifies that the actual value is positive. Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(BigInteger start, BigInteger 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. Verifies that the actual value is equal to zero. Example:
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super BigInteger> 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 BigInteger> 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
| |