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_, toString
protected boolean matchesSafely(Iterable<? super T> collection, Description mismatchDescription)
TypeSafeDiagnosingMatcher
matchesSafely
in class TypeSafeDiagnosingMatcher<Iterable<? super T>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.Copyright © 2016. All rights reserved.