public class IsCollectionContaining<T> extends TypeSafeDiagnosingMatcher<Iterable<? super T>>
| Constructor and Description |
|---|
IsCollectionContaining(Matcher<? super T> elementMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
static <T> Matcher<Iterable<? super T>> |
hasItem(Matcher<? super T> elementMatcher) |
static <T> Matcher<Iterable<? super T>> |
hasItem(T element) |
static <T> Matcher<Iterable<T>> |
hasItems(Matcher<? super T>... elementMatchers) |
static <T> Matcher<Iterable<T>> |
hasItems(T... elements) |
protected boolean |
matchesSafely(Iterable<? super T> collection,
Description mismatchDescription)
Subclasses should implement this.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringprotected boolean matchesSafely(Iterable<? super T> collection, Description mismatchDescription)
TypeSafeDiagnosingMatchermatchesSafely in class TypeSafeDiagnosingMatcher<Iterable<? super T>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.Copyright © 2016. All rights reserved.