T - type for this matcherS - type for sub-matcherpublic abstract class CompositeMatcher<T,S>
extends org.hamcrest.BaseMatcher<T>
FeatureMatcher doesn't support flexible error messaging, this class provides callbacks
for error message.| Modifier and Type | Field and Description |
|---|---|
protected org.hamcrest.Description |
actual |
protected org.hamcrest.Description |
expected |
protected org.hamcrest.Matcher<? super S> |
subMatcher |
| Modifier | Constructor and Description |
|---|---|
protected |
CompositeMatcher(org.hamcrest.Matcher<? super S> subMatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeExpectedBySubMatcher(org.hamcrest.Matcher<? super S> subMatcher,
S targetValue,
org.hamcrest.Description expected,
org.hamcrest.Description actual) |
void |
describeMismatch(Object item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
abstract String |
getSubMatcherFailureDescriptionPrefix() |
abstract S |
getValue(T actual) |
boolean |
matches(Object item) |
protected boolean |
validateByThisMatcher(T item,
org.hamcrest.Description expected,
org.hamcrest.Description actual) |
protected org.hamcrest.Matcher<? super S> subMatcher
protected org.hamcrest.Description expected
protected org.hamcrest.Description actual
protected CompositeMatcher(org.hamcrest.Matcher<? super S> subMatcher)
public boolean matches(Object item)
protected boolean validateByThisMatcher(T item, org.hamcrest.Description expected, org.hamcrest.Description actual)
protected void describeExpectedBySubMatcher(org.hamcrest.Matcher<? super S> subMatcher, S targetValue, org.hamcrest.Description expected, org.hamcrest.Description actual)
public abstract String getSubMatcherFailureDescriptionPrefix()
public void describeTo(org.hamcrest.Description description)
Copyright © 2017. All rights reserved.