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, toString
public boolean matchesSafely(T[] actual)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<T[]>
public void describeMismatchSafely(T[] actual, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<T[]>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.