public class IsIterableContainingInAnyOrder<T> extends TypeSafeDiagnosingMatcher<Iterable<T>>
| Constructor and Description |
|---|
IsIterableContainingInAnyOrder(Collection<Matcher<? super T>> matchers) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Matcher<Iterable<T>> |
containsInAnyOrder(Collection<Matcher<? super T>> matchers) |
static <T> Matcher<Iterable<T>> |
containsInAnyOrder(Matcher<? super T>... matchers) |
static <E> Matcher<Iterable<E>> |
containsInAnyOrder(Matcher<E> item) |
static <T> Matcher<Iterable<T>> |
containsInAnyOrder(T... items) |
void |
describeTo(Description description)
Generates a description of the object.
|
protected boolean |
matchesSafely(Iterable<T> items,
Description mismatchDescription)
Subclasses should implement this.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic IsIterableContainingInAnyOrder(Collection<Matcher<? super T>> matchers)
protected boolean matchesSafely(Iterable<T> items, Description mismatchDescription)
TypeSafeDiagnosingMatchermatchesSafely in class TypeSafeDiagnosingMatcher<Iterable<T>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static <T> Matcher<Iterable<T>> containsInAnyOrder(Matcher<? super T>... matchers)
public static <T> Matcher<Iterable<T>> containsInAnyOrder(Collection<Matcher<? super T>> matchers)
Copyright © 2016. All rights reserved.