Matcher<T>, SelfDescribingpublic class AllOf<T> extends DiagnosingMatcher<T>
false.| Constructor | Description |
|---|---|
AllOf(java.lang.Iterable<Matcher<? super T>> matchers) |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> Matcher<T> |
allOf(java.lang.Iterable<Matcher<? super T>> matchers) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
static <T> Matcher<T> |
allOf(Matcher<? super T>... matchers) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
static <T> Matcher<T> |
allOf(Matcher<? super T> first,
Matcher<? super T> second) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
static <T> Matcher<T> |
allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
static <T> Matcher<T> |
allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
static <T> Matcher<T> |
allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
static <T> Matcher<T> |
allOf(Matcher<? super T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth) |
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
|
void |
describeTo(Description description) |
Generates a description of the object.
|
boolean |
matches(java.lang.Object o,
Description mismatch) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringdescribeMismatch, matchespublic boolean matches(java.lang.Object o,
Description mismatch)
matches in class DiagnosingMatcher<T>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static <T> Matcher<T> allOf(java.lang.Iterable<Matcher<? super T>> matchers)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))public static <T> Matcher<T> allOf(Matcher<? super T>... matchers)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))public static <T> Matcher<T> allOf(Matcher<? super T> first, Matcher<? super T> second)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))public static <T> Matcher<T> allOf(Matcher<? super T> first, Matcher<? super T> second, Matcher<? super T> third)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))public static <T> Matcher<T> allOf(Matcher<? super T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))public static <T> Matcher<T> allOf(Matcher<? super T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth, Matcher<? super T> fifth)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))public static <T> Matcher<T> allOf(Matcher<? super T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth, Matcher<? super T> fifth, Matcher<? super T> sixth)
assertThat("myValue", allOf(startsWith("my"), containsString("Val")))