org.hamcrest.beans
Class SamePropertyValuesAs.PropertyMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.DiagnosingMatcher<Object>
org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher
- All Implemented Interfaces:
- Matcher<Object>, SelfDescribing
- Enclosing class:
- SamePropertyValuesAs<T>
public static class SamePropertyValuesAs.PropertyMatcher
- extends DiagnosingMatcher<Object>
SamePropertyValuesAs.PropertyMatcher
public SamePropertyValuesAs.PropertyMatcher(PropertyDescriptor descriptor,
Object expectedObject)
matches
public boolean matches(Object actual,
Description mismatchDescription)
- Specified by:
matches
in class DiagnosingMatcher<Object>
describeTo
public void describeTo(Description description)
- Description copied from interface:
SelfDescribing
- 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.
- Parameters:
description
- The description to be built or appended to.