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_, toString
public IsIterableContainingInAnyOrder(Collection<Matcher<? super T>> matchers)
protected boolean matchesSafely(Iterable<T> items, Description mismatchDescription)
TypeSafeDiagnosingMatcher
matchesSafely
in class TypeSafeDiagnosingMatcher<Iterable<T>>
public void describeTo(Description description)
SelfDescribing
description
- 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.