private static class SamePropertyValuesAs.PropertyMatcher extends DiagnosingMatcher<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private Matcher<java.lang.Object> |
matcher |
private java.lang.String |
propertyName |
private java.lang.reflect.Method |
readMethod |
Constructor and Description |
---|
PropertyMatcher(java.beans.PropertyDescriptor descriptor,
java.lang.Object expectedObject) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matches(java.lang.Object actual,
Description mismatch) |
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
private final java.lang.reflect.Method readMethod
private final Matcher<java.lang.Object> matcher
private final java.lang.String propertyName
public PropertyMatcher(java.beans.PropertyDescriptor descriptor, java.lang.Object expectedObject)
public boolean matches(java.lang.Object actual, Description mismatch)
matches
in class DiagnosingMatcher<java.lang.Object>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.