| Modifier and Type | Field and Description |
|---|---|
| private final Matcher |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> IsArray | |
| public void | describeMismatchSafely(T[] actual, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| protected String | |
| protected String | |
| protected String | |
| public boolean | matchesSafely(T[] array)
Implements abstract org. |
| elementMatchers | back to summary |
|---|---|
| private final Matcher<? super T>[] elementMatchers | |
| IsArray | back to summary |
|---|---|
| public IsArray(Matcher<? super T>[] elementMatchers) | |
| array | back to summary |
|---|---|
| public static <T> IsArray Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. Matches positively only if the number of matchers specified is equal to the length of the examined array and each matcher[i] is satisfied by array[i]. For example: assertThat(new Integer[]{1,2,3}, is(array(equalTo(1), equalTo(2), equalTo(3))))
| |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(T[] actual, Description mismatchDescription) Overrides org. Doc from org. Subclasses should override this. The item will already have been checked for the specific type and will never be null.
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| descriptionEnd | back to summary |
|---|---|
| protected String descriptionEnd() Returns the string that ends the description. Can be overridden in subclasses to customise how the matcher is described. | |
| descriptionSeparator | back to summary |
|---|---|
| protected String descriptionSeparator() Returns the string that separates the elements in the description. Can be overridden in subclasses to customise how the matcher is described. | |
| descriptionStart | back to summary |
|---|---|
| protected String descriptionStart() Returns the string that starts the description. Can be overridden in subclasses to customise how the matcher is described. | |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(T[] array) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |