Numbers.
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. start, ACTUAL the end value (inclusive), expected not to be null. end)Verifies that the actual value is in [start, end] range (start included, end included). |
| public SELF | |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Verifies that the actual number is close to the given one within the given percentage. |
| public SELF | |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Offset<ACTUAL> the given positive offset. offset)Verifies that the actual number is not close to the given one within the given offset. |
| public SELF | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Verifies that the actual number is not close to the given one within the given percentage. |
| public SELF | Returns: this assertion object.Verifies that the actual value is non negative (positive or equal zero). |
| public SELF | Returns: this assertion object.Verifies that the actual value is non positive (negative or equal zero). |
| public SELF | |
| public SELF | |
| public SELF | |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. start, ACTUAL the end value (exclusive), expected not to be null. end)Verifies that the actual value is in ]start, end[ range (start excluded, end excluded). |
| public SELF |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(ACTUAL start, ACTUAL end) Verifies that the actual value is in [start, end] range (start included, end included). Example:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(ACTUAL expected, Offset<ACTUAL> offset) Verifies that the actual number is close to the given one within the given offset. Example with double:
| |
| isCloseTo | back to summary |
|---|---|
| public SELF isCloseTo(ACTUAL expected, Percentage percentage) Verifies that the actual number is close to the given one within the given percentage. Example with double:
| |
| isNegative | back to summary |
|---|---|
| public SELF isNegative() Verifies that the actual value is negative. Example:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(ACTUAL expected, Offset<ACTUAL> offset) Verifies that the actual number is not close to the given one within the given offset. Example with double:
| |
| isNotCloseTo | back to summary |
|---|---|
| public SELF isNotCloseTo(ACTUAL expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage. Example with double:
| |
| isNotNegative | back to summary |
|---|---|
| public SELF isNotNegative() Verifies that the actual value is non negative (positive or equal zero). Example:
| |
| isNotPositive | back to summary |
|---|---|
| public SELF isNotPositive() Verifies that the actual value is non positive (negative or equal zero). Example:
| |
| isNotZero | back to summary |
|---|---|
| public SELF isNotZero() Verifies that the actual value is not equal to zero. Example:
| |
| isOne | back to summary |
|---|---|
| public SELF isOne() Verifies that the actual value is equal to one. Example:
| |
| isPositive | back to summary |
|---|---|
| public SELF isPositive() Verifies that the actual value is positive. Example:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(ACTUAL start, ACTUAL end) Verifies that the actual value is in ]start, end[ range (start excluded, end excluded). Example:
| |
| isZero | back to summary |
|---|---|
| public SELF isZero() Verifies that the actual value is equal to zero. Example:
| |