T - public abstract class MatcherProxy<T> extends QuickResultMatcherBase<T> implements PrecedencedSelfDescribing
P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
MatcherProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
int |
getDescriptionPrecedence() |
protected abstract org.hamcrest.Matcher<T> |
matcher() |
boolean |
matches(Object o) |
boolean |
matches(Object item,
org.hamcrest.Description mismatch)
Evaluates the matcher for argument
item. |
<I> MatchResult<I> |
matchResult(I item)
Returns a
MatchResult that caches the mismatch descripton. |
quickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringprotected abstract org.hamcrest.Matcher<T> matcher()
public boolean matches(Object o)
QuickResultMatcherBasematches in interface org.hamcrest.Matcher<T>matches in class QuickResultMatcherBase<T>public boolean matches(Object item, org.hamcrest.Description mismatch)
QuickResultMatcherBaseitem.
A mismatch description is appended to mismatch
if and only if the match fails.
matches in interface QuickDiagnosingMatcher<T>matches in class QuickResultMatcherBase<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 description)
describeTo in interface org.hamcrest.SelfDescribingpublic void describeMismatch(Object item, org.hamcrest.Description description)
QuickResultMatcherBasedescribeMismatch in interface org.hamcrest.Matcher<T>describeMismatch in class QuickResultMatcherBase<T>public <I> MatchResult<I> matchResult(I item)
QuickDiagnosingMatcherBaseMatchResult that caches the mismatch descripton.matchResult in interface QuickDiagnosingMatcher<T>matchResult in class QuickResultMatcherBase<T>public int getDescriptionPrecedence()
getDescriptionPrecedence in interface PrecedencedSelfDescribingCopyright © 2015. All rights reserved.