| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.the other)Iterable to compare size with actual group.Verifies that the actual group has the same size as given |
| public SELF | Returns: this assertion object.the array to compare size with actual group. array)Verifies that the actual group has the same size as given array. |
| public SELF | Returns: this assertion object.the expected number of values in the actual group. expected)Verifies that the number of values in the actual group is equal to the given one. |
| 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)Verifies that the number of values in the actual group is between the given boundaries (inclusive). |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Verifies that the number of values in the actual group is greater than the given boundary. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Verifies that the number of values in the actual group is greater than or equal to the given boundary. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Verifies that the number of values in the actual group is less than the given boundary. |
| public SELF | Returns: this assertion object.the given value to compare the actual size to. boundary)Verifies that the number of values in the actual group is less than or equal to the given boundary. |
| public void | |
| public SELF | |
| public void | |
| public SELF | Returns: this assertion object.Revert to standard comparison for incoming assertion group element checks. |
| public SELF | Returns: this assertion object.the comparator to use for incoming assertion checks. customComparator)Use given custom comparator instead of relying on actual type A |
| hasSameSizeAs | back to summary |
|---|---|
| public SELF hasSameSizeAs(Iterable<?> other) Verifies that the actual group has the same size as given Example:
| |
| hasSameSizeAs | back to summary |
|---|---|
| public SELF hasSameSizeAs(Object array) Verifies that the actual group has the same size as given array. Parameter is declared as Object to accept both Object[] and primitive arrays (e.g. int[]). Example:
| |
| hasSize | back to summary |
|---|---|
| public SELF hasSize(int expected) 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) Verifies that the number of values in the actual group is between the given boundaries (inclusive). Example:
| |
| hasSizeGreaterThan | back to summary |
|---|---|
| public SELF hasSizeGreaterThan(int boundary) Verifies that the number of values in the actual group is greater than the given boundary. Example:
| |
| hasSizeGreaterThanOrEqualTo | back to summary |
|---|---|
| public SELF hasSizeGreaterThanOrEqualTo(int boundary) Verifies that the number of values in the actual group is greater than or equal to the given boundary. Example:
| |
| hasSizeLessThan | back to summary |
|---|---|
| public SELF hasSizeLessThan(int boundary) Verifies that the number of values in the actual group is less than the given boundary. Example:
| |
| hasSizeLessThanOrEqualTo | back to summary |
|---|---|
| public SELF hasSizeLessThanOrEqualTo(int boundary) Verifies that the number of values in the actual group is less than or equal to the given boundary. Example:
| |
| isEmpty | back to summary |
|---|---|
| public void isEmpty() Verifies that the actual group of values is empty. Example:
| |
| isNotEmpty | back to summary |
|---|---|
| public SELF isNotEmpty() Verifies that the actual group of values is not empty. Example:
| |
| isNullOrEmpty | back to summary |
|---|---|
| public void isNullOrEmpty() Verifies that the actual group of values is Example:
| |
| usingDefaultElementComparator | back to summary |
|---|---|
| public SELF usingDefaultElementComparator() 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 ELEMENT> customComparator) 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 :
| |