|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T[]>
org.hamcrest.collection.IsArrayContaining<T>
public class IsArrayContaining<T>
| Constructor Summary | |
|---|---|
IsArrayContaining(Matcher<T> elementMatcher)
|
|
| Method Summary | ||
|---|---|---|
void |
describeTo(Description description)
Generates a description of the object. |
|
static
|
hasItemInArray(Matcher<T> elementMatcher)
|
|
static
|
hasItemInArray(T element)
|
|
boolean |
matchesSafely(T[] array)
Subclasses should implement this. |
|
| Methods inherited from class org.hamcrest.TypeSafeMatcher |
|---|
matches |
| Methods inherited from class org.hamcrest.BaseMatcher |
|---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IsArrayContaining(Matcher<T> elementMatcher)
| Method Detail |
|---|
public boolean matchesSafely(T[] array)
TypeSafeMatcher
matchesSafely in class TypeSafeMatcher<T[]>public void describeTo(Description description)
SelfDescribing
description - The description to be built or appended to.public static <T> Matcher<T[]> hasItemInArray(Matcher<T> elementMatcher)
public static <T> Matcher<T[]> hasItemInArray(T element)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||