public class MatcherDescription<T> extends NestedMatcher<T>
NestedMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>>, NestedMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>>, NestedMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>>P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
MatcherDescription(org.hamcrest.Matcher<T> matcher,
String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description d) |
int |
getDescriptionPrecedence() |
boolean |
matches(Object o) |
boolean |
matches(Object item,
org.hamcrest.Description mismatch)
Evaluates the matcher for argument
item. |
nestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchmatchResult, quickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic int getDescriptionPrecedence()
public boolean matches(Object o)
matches in interface org.hamcrest.Matcher<T>matches in class QuickDiagnosingMatcherBase<T>public boolean matches(Object item, org.hamcrest.Description mismatch)
item.
A mismatch description is appended to mismatch
if and only if the match fails.
matches in interface QuickDiagnosingMatcher<T>matches in class QuickDiagnosingMatcherBase<T>item - The object against which the matcher is evaluated.mismatch - The description to be built or appended to.true if item matches, otherwise false.public void describeTo(org.hamcrest.Description d)
public void describeMismatch(Object item, org.hamcrest.Description description)
describeMismatch in interface org.hamcrest.Matcher<T>describeMismatch in class QuickDiagnosingMatcherBase<T>Copyright © 2015. All rights reserved.