Matcher<java.lang.Object>
, SelfDescribing
public static class SamePropertyValuesAs.PropertyMatcher extends DiagnosingMatcher<java.lang.Object>
Constructor | Description |
---|---|
PropertyMatcher(java.beans.PropertyDescriptor descriptor,
java.lang.Object expectedObject) |
Modifier and Type | Method | Description |
---|---|---|
void |
describeTo(Description description) |
Generates a description of the object.
|
boolean |
matches(java.lang.Object actual,
Description mismatch) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
describeMismatch, matches
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.