featureValueOf()
in a subclass to pull out the feature to be matched against.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final Matcher | |
| private static final ReflectiveTypeFinder |
| Access | Constructor and Description |
|---|---|
| public | FeatureMatcher(Matcher<? super U>
The matcher to apply to the feature subMatcher, String Descriptive text to use in describeTo featureDescription, String Identifying text for mismatch message featureName)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public final void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| protected abstract U | Returns: the feature to be matchedthe target object actual)Implement this to extract the interesting feature. |
| protected boolean | matchesSafely(T actual, Description mismatch)
Implements abstract org. |
| featureDescription | back to summary |
|---|---|
| private final String featureDescription | |
| featureName | back to summary |
|---|---|
| private final String featureName | |
| subMatcher | back to summary |
|---|---|
| private final Matcher<? super U> subMatcher | |
| TYPE_FINDER | back to summary |
|---|---|
| private static final ReflectiveTypeFinder TYPE_FINDER | |
| FeatureMatcher | back to summary |
|---|---|
| public FeatureMatcher(Matcher<? super U> subMatcher, String featureDescription, String featureName) Constructor | |
| describeTo | back to summary |
|---|---|
| public final void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| featureValueOf | back to summary |
|---|---|
| protected abstract U featureValueOf(T actual) Implement this to extract the interesting feature.
| |
| matchesSafely | back to summary |
|---|---|
| protected boolean matchesSafely(T actual, Description mismatch) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |