| Modifier and Type | Field and Description |
|---|---|
| protected LongArrays |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array contains the given values, in any order. |
| public SELF | |
| public SELF | |
| public SELF | Returns: this assertion object.the values whose at least one which is expected to be in the array under test. values)Verifies that the actual array contains at least one of the given values. |
| public SELF | Returns: this assertion object.the array of values whose at least one which is expected to be in the array under test. values)Verifies that the actual array contains at least one value of the given array. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual group contains only the given values and nothing else, in order. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual group contains only the values of the given array and nothing else, in order. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual group contains exactly the given values and nothing else, in any order. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual group contains exactly the values of the given array and nothing else, in any order. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array contains only the given values and nothing else, in any order. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array contains only the values of the given array and nothing else, in any order. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array contains the given values only once. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array contains the values of the given array only once. |
| public SELF | Returns: myself assertion object.the sequence of values to look for. sequence)Verifies that the actual array contains the given sequence, without any other values between them. |
| public SELF | Returns: myself assertion object.the sequence of values to look for. sequence)Verifies that the actual array contains the given sequence, without any other values between them. |
| public SELF | Returns: myself assertion object.the subsequence of values to look for. subsequence)Verifies that the actual array contains the given subsequence (possibly with other values between them). |
| public SELF | Returns: myself assertion object.the subsequence of values to look for. subsequence)Verifies that the actual array contains the given subsequence (possibly with other values between them). |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array does not contain the given values. |
| public SELF | Returns: this assertion object.the given values. values)Verifies that the actual array does not contain the values of the given array. |
| public SELF | Returns: myself assertion object.the value to look for. value, Index the index where the value should be stored in the actual array. index)Verifies that the actual array does not contain the given value at the given index. |
| public SELF | Returns: this assertion object.Verifies that the actual array does not contain duplicates. |
| public SELF | Returns: myself assertion object.the sequence of values to look for. sequence)Verifies that the actual array ends with the given sequence of values, without any other values between them. |
| public SELF | |
| public SELF | hasSameSizeAs(Iterable<?>
the other)Iterable to compare size with actual group.Implements org. Iterable.
|
| public SELF | hasSize(int
the expected number of values in the actual group. expected)Implements org. |
| public SELF | Returns: this assertion object.the lower boundary compared to which actual size should be greater than or equal to. lowerBoundary, int the higher boundary compared to which actual size should be less than or equal to. higherBoundary)Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Implements org. |
| public void | isEmpty()
Implements org. |
| public SELF | isNotEmpty()
Implements org. |
| public void | isNullOrEmpty()
Implements org. null or empty.
|
| public SELF | isSorted()
Implements org. |
| public SELF | isSortedAccordingTo(Comparator<? super Long>
the comparator)Comparator used to compare array elementsImplements org. |
| public SELF | Returns: myself assertion object.the sequence of values to look for. sequence)Verifies that the actual array starts with the given sequence of values, without any other values between them. |
| public SELF | Returns: myself assertion object.the sequence of values to look for. sequence)Verifies that the actual array starts with the given sequence of values, without any other values between them. |
| private static long[] | |
| public SELF | usingDefaultElementComparator()
Implements org. |
| public SELF | usingElementComparator(Comparator<? super Long>
the comparator to use for incoming assertion checks. customComparator)Implements org. equals method to compare group
elements for incoming assertion checks.
|
| arrays | back to summary |
|---|---|
| protected LongArrays arrays
| |
| AbstractLongArrayAssert | back to summary |
|---|---|
| protected AbstractLongArrayAssert(long[] actual, Class<?> selfType) | |
| contains | back to summary |
|---|---|
| public SELF contains(long... values) Verifies that the actual array contains the given values, in any order. Example:
| |
| contains | back to summary |
|---|---|
| public SELF contains(Long[] values) Verifies that the actual array contains the values of the given array, in any order. Example:
| |
| contains | back to summary |
|---|---|
| public SELF contains(long value, Index index) Verifies that the actual array contains the given value at the given index. Example:
| |
| containsAnyOf | back to summary |
|---|---|
| public SELF containsAnyOf(long... values) Verifies that the actual array contains at least one of the given values. Example :
| |
| containsAnyOf | back to summary |
|---|---|
| public SELF containsAnyOf(Long[] values) Verifies that the actual array contains at least one value of the given array. Example :
| |
| containsExactly | back to summary |
|---|---|
| public SELF containsExactly(long... values) Verifies that the actual group contains only the given values and nothing else, in order. Example :
| |
| containsExactly | back to summary |
|---|---|
| public SELF containsExactly(Long[] values) Verifies that the actual group contains only the values of the given array and nothing else, in order. Example :
| |
| containsExactlyInAnyOrder | back to summary |
|---|---|
| public SELF containsExactlyInAnyOrder(long... values) Verifies that the actual group contains exactly the given values and nothing else, in any order. Example :
| |
| containsExactlyInAnyOrder | back to summary |
|---|---|
| public SELF containsExactlyInAnyOrder(Long[] values) Verifies that the actual group contains exactly the values of the given array and nothing else, in any order. Example :
| |
| containsOnly | back to summary |
|---|---|
| public SELF containsOnly(long... values) Verifies that the actual array contains only the given values and nothing else, in any order. Example:
| |
| containsOnly | back to summary |
|---|---|
| public SELF containsOnly(Long[] values) Verifies that the actual array contains only the values of the given array and nothing else, in any order. Example:
| |
| containsOnlyOnce | back to summary |
|---|---|
| public SELF containsOnlyOnce(long... values) Verifies that the actual array contains the given values only once. Examples :
| |
| containsOnlyOnce | back to summary |
|---|---|
| public SELF containsOnlyOnce(Long[] values) Verifies that the actual array contains the values of the given array only once. Examples :
| |
| containsSequence | back to summary |
|---|---|
| public SELF containsSequence(long... sequence) Verifies that the actual array contains the given sequence, without any other values between them. Example:
| |
| containsSequence | back to summary |
|---|---|
| public SELF containsSequence(Long[] sequence) Verifies that the actual array contains the given sequence, without any other values between them. Example:
| |
| containsSubsequence | back to summary |
|---|---|
| public SELF containsSubsequence(long... subsequence) Verifies that the actual array contains the given subsequence (possibly with other values between them). Example:
| |
| containsSubsequence | back to summary |
|---|---|
| public SELF containsSubsequence(Long[] subsequence) Verifies that the actual array contains the given subsequence (possibly with other values between them). Example:
| |
| doesNotContain | back to summary |
|---|---|
| public SELF doesNotContain(long... values) Verifies that the actual array does not contain the given values. Example:
| |
| doesNotContain | back to summary |
|---|---|
| public SELF doesNotContain(Long[] values) Verifies that the actual array does not contain the values of the given array. Example:
| |
| doesNotContain | back to summary |
|---|---|
| public SELF doesNotContain(long value, Index index) Verifies that the actual array does not contain the given value at the given index. Example:
| |
| doesNotHaveDuplicates | back to summary |
|---|---|
| public SELF doesNotHaveDuplicates() Verifies that the actual array does not contain duplicates. Example:
| |
| endsWith | back to summary |
|---|---|
| public SELF endsWith(long... sequence) Verifies that the actual array ends with the given sequence of values, without any other values between them.
Similar to Example:
| |
| endsWith | back to summary |
|---|---|
| public SELF endsWith(Long[] sequence) Verifies that the actual array ends with the given sequence of values, without any other values between them.
Similar to Example:
| |
| hasSameSizeAs | back to summary |
|---|---|
| public SELF hasSameSizeAs(Iterable<?> other) Implements org. Doc from org. Verifies that the actual group has the same size as given Example:
| |
| hasSize | back to summary |
|---|---|
| public SELF hasSize(int expected) Implements org. Doc from org. Verifies that the number of values in the actual group is equal to the given one. Example:
| |
| hasSizeBetween | back to summary |
|---|---|
| public SELF hasSizeBetween(int lowerBoundary, int higherBoundary) Implements org. Verifies that the number of values in the actual array is between the given boundaries (inclusive). Example:
| |
| hasSizeGreaterThan | back to summary |
|---|---|
| public SELF hasSizeGreaterThan(int boundary) Implements org. Verifies that the number of values in the actual array is greater than the given boundary. Example:
| |
| hasSizeGreaterThanOrEqualTo | back to summary |
|---|---|
| public SELF hasSizeGreaterThanOrEqualTo(int boundary) Implements org. Verifies that the number of values in the actual array is greater than or equal to the given boundary. Example:
| |
| hasSizeLessThan | back to summary |
|---|---|
| public SELF hasSizeLessThan(int boundary) Implements org. Verifies that the number of values in the actual array is less than the given boundary. Example:
| |
| hasSizeLessThanOrEqualTo | back to summary |
|---|---|
| public SELF hasSizeLessThanOrEqualTo(int boundary) Implements org. Verifies that the number of values in the actual array is less than or equal to the given boundary. Example:
| |
| isEmpty | back to summary |
|---|---|
| public void isEmpty() Implements org. Doc from org. Verifies that the actual group of values is empty. Example:
| |
| isNotEmpty | back to summary |
|---|---|
| public SELF isNotEmpty() Implements org. Doc from org. Verifies that the actual group of values is not empty. Example:
| |
| isNullOrEmpty | back to summary |
|---|---|
| public void isNullOrEmpty() Implements org. Doc from org. Verifies that the actual group of values is Example:
| |
| isSorted | back to summary |
|---|---|
| public SELF isSorted() Implements org. Doc from org. Verifies that the actual array is sorted in ascending order according to the natural ordering of its elements.
All array elements must be primitive or implement the
| |
| isSortedAccordingTo | back to summary |
|---|---|
| public SELF isSortedAccordingTo(Comparator<? super Long> comparator) Implements org. Doc from org. Verifies that the actual array is sorted according to the given comparator.
| |
| startsWith | back to summary |
|---|---|
| public SELF startsWith(long... sequence) Verifies that the actual array starts with the given sequence of values, without any other values between them.
Similar to Example:
| |
| startsWith | back to summary |
|---|---|
| public SELF startsWith(Long[] sequence) Verifies that the actual array starts with the given sequence of values, without any other values between them.
Similar to Example:
| |
| toPrimitiveLongArray | back to summary |
|---|---|
| private static long[] toPrimitiveLongArray(Long[] values) | |
| usingDefaultElementComparator | back to summary |
|---|---|
| public SELF usingDefaultElementComparator() Implements org. Doc from org. Revert to standard comparison for incoming assertion group element checks.
This method should be used to disable a custom comparison strategy set by calling
| |
| usingElementComparator | back to summary |
|---|---|
| public SELF usingElementComparator(Comparator<? super Long> customComparator) Implements org. Doc from org. Use given custom comparator instead of relying on actual type A Custom comparator is bound to assertion instance, meaning that if a new assertion is created, it will use default comparison strategy. Examples :
| |