Deprecated
As of release 2.1, replaced by ArrayMatching.
| Modifier and Type | Field and Description |
|---|---|
| private final IsIterableContainingInOrder | |
| private final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> Matcher | arrayContaining(E...
the items that must equal the items within an examined array items)
Deprecated
As of version 2.1, use
Creates a matcher for arrays that matcheswhen each item in the examined array is
logically equal to the corresponding item in the specified items.
ArrayMatching#arrayContaining(Object[]).
|
| public static <E> Matcher | arrayContaining(Matcher<? super E>...
the matchers that must be satisfied by the items in the examined array itemMatchers)
Deprecated
As of version 2.1, use
Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified matchers.
ArrayMatching#arrayContaining(Matcher[]).
|
| public static <E> Matcher | arrayContaining(List<Matcher<? super E>>
a list of matchers, each of which must be satisfied by the corresponding item in an examined array itemMatchers)
Deprecated
As of version 2.1, use
Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified list of matchers.
ArrayMatching#arrayContaining(List).
|
| public void | describeMismatchSafely(E[] item, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public boolean | matchesSafely(E[] item)
Implements abstract org. |
| iterableMatcher | back to summary |
|---|---|
| private final IsIterableContainingInOrder<E> iterableMatcher | |
| matchers | back to summary |
|---|---|
| private final Collection<Matcher<? super E>> matchers | |
| IsArrayContainingInOrder | back to summary |
|---|---|
| public IsArrayContainingInOrder(List<Matcher<? super E>> matchers) | |
| arrayContaining | back to summary |
|---|---|
| public static <E> Matcher Deprecated As of version 2.1, use Creates a matcher for arrays that matcheswhen each item in the examined array is logically equal to the corresponding item in the specified items. For a positive match, the examined array must be of the same length as the number of specified items. For example: assertThat(new String[]{"foo", "bar"}, contains("foo", "bar"))
| |
| arrayContaining | back to summary |
|---|---|
| public static <E> Matcher Deprecated As of version 2.1, use Creates a matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified matchers. For a positive match, the examined array must be of the same length as the number of specified matchers. For example: assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))
| |
| arrayContaining | back to summary |
|---|---|
| public static <E> Matcher Deprecated As of version 2.1, use Creates a matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified list of matchers. For a positive match, the examined array must be of the same length as the specified list of matchers. For example: assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))
| |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(E[] item, 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.
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(E[] item) 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.
| |