public abstract class TypesafeFeatureMatcher<V,F> extends TypesafeNestedResultMatcher<V>
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 |
|---|
TypesafeFeatureMatcher(org.hamcrest.Matcher<? super F> featureMatcher,
String matchPrefix,
String mismatchPrefix) |
TypesafeFeatureMatcher(org.hamcrest.Matcher<? super F> featureMatcher,
String matchPrefix,
String mismatchPrefix,
Class<?> expectedType) |
TypesafeFeatureMatcher(org.hamcrest.Matcher<? super F> featureMatcher,
String matchPrefix,
String mismatchPrefix,
org.hamcrest.internal.ReflectiveTypeFinder typeFinder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeExpectedFeature(V item,
org.hamcrest.Description description) |
protected void |
describeFeature(org.hamcrest.Description description) |
protected void |
describeFeatureMatcher(org.hamcrest.Description description) |
protected void |
describeMatchedFeature(V item,
org.hamcrest.Description description) |
protected void |
describeMismatchedFeature(V item,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
int |
getDescriptionPrecedence() |
protected abstract F |
getFeature(V value) |
protected boolean |
matchesSafely(V item) |
protected <I extends V> |
matchResultSafely(I item) |
describeMismatchSafely, matchesSafelydescribeMismatch, matches, matches, matchResultnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic TypesafeFeatureMatcher(org.hamcrest.Matcher<? super F> featureMatcher, String matchPrefix, String mismatchPrefix)
public TypesafeFeatureMatcher(org.hamcrest.Matcher<? super F> featureMatcher, String matchPrefix, String mismatchPrefix, Class<?> expectedType)
public void describeTo(org.hamcrest.Description description)
protected void describeFeature(org.hamcrest.Description description)
protected void describeFeatureMatcher(org.hamcrest.Description description)
protected void describeMatchedFeature(V item, org.hamcrest.Description description)
protected void describeExpectedFeature(V item, org.hamcrest.Description description)
protected void describeMismatchedFeature(V item, org.hamcrest.Description description)
public int getDescriptionPrecedence()
protected boolean matchesSafely(V item)
matchesSafely in class TypesafeNestedResultMatcher<V>protected <I extends V> MatchResult<I> matchResultSafely(I item)
matchResultSafely in class TypesafeNestedResultMatcher<V>Copyright © 2015. All rights reserved.