Deprecated
As of release 2.1, replaced by ArrayMatching.
| Modifier and Type | Field and Description |
|---|---|
| private final IsIterableContainingInAnyOrder | |
| private final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> Matcher | arrayContainingInAnyOrder(Matcher<? super E>...
a list of matchers, each of which must be satisfied by an entry in an examined array itemMatchers)
Deprecated
As of version 2.1, use
Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified matchers.
ArrayMatching#arrayContainingInAnyOrder(Matcher[]).
|
| public static <E> Matcher | arrayContainingInAnyOrder(Collection<Matcher<? super E>>
a list of matchers, each of which must be satisfied by an item provided by an examined array itemMatchers)
Deprecated
As of version 2.1, use
Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified collection of matchers.
ArrayMatching#arrayContainingInAnyOrder(Collection).
|
| public static <E> Matcher | arrayContainingInAnyOrder(E...
the items that must equal the entries of an examined array, in any order items)
Deprecated
As of version 2.1, use
Creates an order agnostic matcher for arrays that matches when each item in the
examined array is logically equal to one item anywhere in the specified items.
ArrayMatching#arrayContainingInAnyOrder(Object[]).
|
| 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 IsIterableContainingInAnyOrder<E> iterableMatcher | |
| matchers | back to summary |
|---|---|
| private final Collection<Matcher<? super E>> matchers | |
| IsArrayContainingInAnyOrder | back to summary |
|---|---|
| public IsArrayContainingInAnyOrder(Collection<Matcher<? super E>> matchers) | |
| arrayContainingInAnyOrder | back to summary |
|---|---|
| public static <E> Matcher Deprecated As of version 2.1, use Creates an order agnostic matcher for arrays that matches when each item in the examined array satisfies one matcher anywhere in the specified matchers. For a positive match, the examined array must be of the same length as the number of specified matchers. N.B. each of the specified matchers will only be used once during a given examination, so be careful when specifying matchers that may be satisfied by more than one entry in an examined array. For example: assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(equalTo("bar"), equalTo("foo")))
| |
| arrayContainingInAnyOrder | back to summary |
|---|---|
| public static <E> Matcher Deprecated As of version 2.1, use Creates an order agnostic matcher for arrays that matches when each item in the examined array satisfies one matcher anywhere in the specified collection of matchers. For a positive match, the examined array must be of the same length as the specified collection of matchers. N.B. each matcher in the specified collection will only be used once during a given examination, so be careful when specifying matchers that may be satisfied by more than one entry in an examined array. For example: assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))
| |
| arrayContainingInAnyOrder | back to summary |
|---|---|
| public static <E> Matcher Deprecated As of version 2.1, use Creates an order agnostic matcher for arrays that matches when each item in the examined array is logically equal to one item anywhere in the specified items. For a positive match, the examined array must be of the same length as the number of specified items. N.B. each of the specified items will only be used once during a given examination, so be careful when specifying items that may be equal to more than one entry in an examined array. For example: assertThat(new String[]{"foo", "bar"}, containsInAnyOrder("bar", "foo"))
| |
| 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.
| |