T - public class ChainBuilder<T> extends NestedMatcher<T>
ChainFactory.
For convinience, can also be used as a matcher directly.| Modifier and Type | Field and Description |
|---|---|
protected ChainFactory |
factory |
| Constructor and Description |
|---|
ChainBuilder(ChainFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected ChainBuilder<T> |
add(Collection<? extends org.hamcrest.Matcher<? super T>> m) |
protected ChainBuilder<T> |
add(org.hamcrest.Matcher<? super T>... m) |
protected ChainBuilder<T> |
add(org.hamcrest.Matcher<? super T> m) |
org.hamcrest.Matcher<T> |
build() |
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
protected ChainFactory |
factory() |
int |
getPrecedence() |
protected org.hamcrest.Matcher<T> |
matcher() |
boolean |
matches(Object o) |
boolean |
matches(Object item,
org.hamcrest.Description mismatch)
Evaluates the matcher for argument
item. |
nestedDescribe, nestedDescribeMismatch, nestedQuickMatch, nestedQuickMatch, precedenceOfquickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringprotected final ChainFactory factory
public ChainBuilder(ChainFactory factory)
protected ChainFactory factory()
protected org.hamcrest.Matcher<T> matcher()
protected ChainBuilder<T> add(org.hamcrest.Matcher<? super T> m)
protected ChainBuilder<T> add(org.hamcrest.Matcher<? super T>... m)
protected ChainBuilder<T> add(Collection<? extends org.hamcrest.Matcher<? super T>> m)
public boolean matches(Object o)
QuickDiagnosingMatcherBasematches in interface org.hamcrest.Matcher<T>matches in class QuickDiagnosingMatcherBase<T>public boolean matches(Object item, org.hamcrest.Description mismatch)
QuickDiagnosingMatcherBaseitem.
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 description)
public void describeMismatch(Object item, org.hamcrest.Description description)
QuickDiagnosingMatcherBasedescribeMismatch in interface org.hamcrest.Matcher<T>describeMismatch in class QuickDiagnosingMatcherBase<T>public int getPrecedence()
public org.hamcrest.Matcher<T> build()
Copyright © 2013. All Rights Reserved.