public class MatcherDescription<T> extends QuickDiagnosingMatcherBase<T>
| 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) |
boolean |
matches(Object o) |
boolean |
matches(Object item,
org.hamcrest.Description mismatch)
Evaluates the matcher for argument
item. |
quickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic 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 © 2013. All Rights Reserved.