| Modifier and Type | Field and Description |
|---|---|
| pack-priv Comparables | |
| pack-priv Integers |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AtomicIntegerAssert | Returns: this assertion object.the value not expected . expectedValue)Verifies that the actual atomic does not have the given value. |
| public AtomicIntegerAssert | Returns: this assertion object.Verifies that the actual atomic has a negative value. |
| public AtomicIntegerAssert | Returns: this assertion object.Verifies that the actual atomic has a non negative value (positive or equal zero). |
| public AtomicIntegerAssert | Returns: this assertion object.Verifies that the actual atomic has a non positive value (negative or equal zero). |
| public AtomicIntegerAssert | Returns: this assertion object.Verifies that the actual atomic has a positive value. |
| public AtomicIntegerAssert | Returns: this assertion object.the expected value. expectedValue)Verifies that the actual atomic has the given value. |
| public AtomicIntegerAssert | Returns: this assertion object.the start value (inclusive). startInclusive, int the end value (inclusive). endInclusive)Verifies that the actual atomic has a value in [start, end] range (start included, end included). |
| public AtomicIntegerAssert | Returns: this assertion object.the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Verifies that the actual atomic has a value close to the given one within the given percentage. |
| public AtomicIntegerAssert | Returns: this assertion object.the given number to compare the actual value to. expected, Offset<Integer> the given allowed offset)Offset.Verifies that the actual atomic has a value close to the given one within the given offset. |
| public AtomicIntegerAssert | Returns: this assertion object.the given value to compare the actual value to. other)Verifies that the actual atomic has a value strictly greater than the given one. |
| public AtomicIntegerAssert | Returns: this assertion object.the given value to compare the actual value to. other)Verifies that the actual atomic has a value strictly greater than the given one. |
| public AtomicIntegerAssert | Returns: this assertion object.the given value to compare the actual value to. other)Verifies that the actual atomic has a value strictly less than the given one. |
| public AtomicIntegerAssert | Returns: this assertion object.the given value to compare the actual value to. other)Verifies that the actual atomic has a value strictly less than the given one. |
| public AtomicIntegerAssert | usingComparator(Comparator<? super AtomicInteger>
the comparator to use for the incoming assertion checks. customComparator)Overrides org. Implements org. |
| public AtomicIntegerAssert | usingComparator(Comparator<? super AtomicInteger>
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 AtomicIntegerAssert | usingDefaultComparator()
Overrides org. Implements org. |
| comparables | back to summary |
|---|---|
| pack-priv Comparables comparables
| |
| integers | back to summary |
|---|---|
| pack-priv Integers integers
| |
| AtomicIntegerAssert | back to summary |
|---|---|
| public AtomicIntegerAssert(AtomicInteger actual) | |
| doesNotHaveValue | back to summary |
|---|---|
| public AtomicIntegerAssert doesNotHaveValue(int expectedValue) Verifies that the actual atomic does not have the given value. Example:
| |
| hasNegativeValue | back to summary |
|---|---|
| public AtomicIntegerAssert hasNegativeValue() Verifies that the actual atomic has a negative value. Example:
| |
| hasNonNegativeValue | back to summary |
|---|---|
| public AtomicIntegerAssert hasNonNegativeValue() Verifies that the actual atomic has a non negative value (positive or equal zero). Example:
| |
| hasNonPositiveValue | back to summary |
|---|---|
| public AtomicIntegerAssert hasNonPositiveValue() Verifies that the actual atomic has a non positive value (negative or equal zero). Example:
| |
| hasPositiveValue | back to summary |
|---|---|
| public AtomicIntegerAssert hasPositiveValue() Verifies that the actual atomic has a positive value. Example:
| |
| hasValue | back to summary |
|---|---|
| public AtomicIntegerAssert hasValue(int expectedValue) Verifies that the actual atomic has the given value. Example:
| |
| hasValueBetween | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueBetween(int startInclusive, int endInclusive) Verifies that the actual atomic has a value in [start, end] range (start included, end included). Example:
| |
| hasValueCloseTo | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueCloseTo(int expected, Percentage percentage) Verifies that the actual atomic has a value close to the given one within the given percentage. Example with integer:
| |
| hasValueCloseTo | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueCloseTo(int expected, Offset<Integer> offset) Verifies that the actual atomic has a value close to the given one within the given offset. When abs(actual - expected) == offset value, the assertion:
Breaking change since 2.9.0/3.9.0: using Example with Integer:
| |
| hasValueGreaterThan | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueGreaterThan(int other) Verifies that the actual atomic has a value strictly greater than the given one. Example:
| |
| hasValueGreaterThanOrEqualTo | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueGreaterThanOrEqualTo(int other) Verifies that the actual atomic has a value strictly greater than the given one. Example:
| |
| hasValueLessThan | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueLessThan(int other) Verifies that the actual atomic has a value strictly less than the given one. Example:
| |
| hasValueLessThanOrEqualTo | back to summary |
|---|---|
| public AtomicIntegerAssert hasValueLessThanOrEqualTo(int other) Verifies that the actual atomic has a value strictly less than the given one. Example:
| |
| usingComparator | back to summary |
|---|---|
| public AtomicIntegerAssert usingComparator(Comparator<? super AtomicInteger> 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 AtomicIntegerAssert usingComparator(Comparator<? super AtomicInteger> 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 AtomicIntegerAssert 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
| |