public class HasItemInArray<T> extends TypeSafeMatcher<T[]>
| Constructor and Description |
|---|
HasItemInArray(Matcher<? super T> elementMatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(T[] actual,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(T[] actual)
Subclasses should implement this.
|
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toStringpublic boolean matchesSafely(T[] actual)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<T[]>public void describeMismatchSafely(T[] actual, Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<T[]>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.