LongAdders.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Longs |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.the unexpected value. unexpected)Verifies that the actual sum has not the given value. |
| public SELF | Returns: this assertion object.the expected value. expected)Verifies that the actual sum has the given value. |
| 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)Implements org. |
| public SELF | isCloseTo(Long
the given number to compare the actual value to. expected, Offset<Long> the given positive offset. offset)Implements org. |
| public SELF | isCloseTo(Long
the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Implements org. |
| public SELF | isEqualByComparingTo(Long
the given value to compare the actual value to. other)Implements org. .
|
| public SELF | isGreaterThan(Long
the given value to compare the actual value to. other)Implements org. |
| public SELF | isGreaterThanOrEqualTo(Long
the given value to compare the actual value to. other)Implements org. |
| public SELF | isLessThan(Long
the given value to compare the actual value to. other)Implements org. |
| public SELF | isLessThanOrEqualTo(Long
the given value to compare the actual value to. other)Implements org. |
| public SELF | isNegative()
Implements org. |
| public SELF | isNotCloseTo(Long
the given number to compare the actual value to. expected, Offset<Long> the given positive offset. offset)Implements org. |
| public SELF | isNotCloseTo(Long
the given number to compare the actual value to. expected, Percentage the given positive percentage. percentage)Implements org. |
| public SELF | isNotEqualByComparingTo(Long
the given value to compare the actual value to. other)Implements org. .
|
| public SELF | isNotNegative()
Implements org. |
| public SELF | isNotPositive()
Implements org. |
| public SELF | isNotZero()
Implements org. |
| 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)Implements org. |
| public SELF | isZero()
Implements org. |
| public SELF | usingComparator(Comparator<? super LongAdder>
the comparator to use for the incoming assertion checks. customComparator)Overrides org. Implements org. |
| public SELF | usingComparator(Comparator<? super LongAdder>
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
| |
| AbstractLongAdderAssert | back to summary |
|---|---|
| protected AbstractLongAdderAssert(LongAdder longAdder, Class<?> selfType) | |
| doesNotHaveValue | back to summary |
|---|---|
| public SELF doesNotHaveValue(long unexpected) Verifies that the actual sum has not the given value. Example:
| |
| hasValue | back to summary |
|---|---|
| public SELF hasValue(long expected) Verifies that the actual sum has the given value. Example:
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(Long start, Long end) Implements org. Doc from 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. Doc from org. 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(Long expected, Percentage percentage) Implements org. Doc from org. Verifies that the actual number is close to the given one within the given percentage. Example with double:
| |
| isEqualByComparingTo | back to summary |
|---|---|
| public SELF isEqualByComparingTo(Long other) Implements org. Doc from org. Verifies that the actual value is equal to the given one by invoking
Example:
| |
| isGreaterThan | back to summary |
|---|---|
| public SELF isGreaterThan(Long other) Implements org. Doc from org. Verifies that the actual value is greater than the given one. Example:
| |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public SELF isGreaterThanOrEqualTo(Long other) Implements org. Doc from 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) Implements org. Doc from org. Verifies that the actual value is less than the given one. Example:
| |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public SELF isLessThanOrEqualTo(Long other) Implements org. Doc from 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. Doc from org. 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(Long expected, Percentage percentage) Implements org. Doc from org. Verifies that the actual number is not close to the given one within the given percentage. Example with double:
| |
| isNotEqualByComparingTo | back to summary |
|---|---|
| public SELF isNotEqualByComparingTo(Long other) Implements org. Doc from org. Verifies that the actual value is not equal to the given one by invoking
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:
| |
| 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) Implements org. Doc from 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 LongAdder> 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 LongAdder> 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
| |