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