Class SamePropertyValuesAs.PropertyMatcher

java.lang.Object
org.hamcrest.BaseMatcher<Object>
org.hamcrest.DiagnosingMatcher<Object>
org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher
All Implemented Interfaces:
Matcher<Object>, SelfDescribing
Enclosing class:
SamePropertyValuesAs<T>

private static class SamePropertyValuesAs.PropertyMatcher extends DiagnosingMatcher<Object>
  • Field Details

    • readMethod

      private final Method readMethod
    • matcher

      private final Matcher<Object> matcher
    • propertyName

      private final String propertyName
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(Object actual, Description mismatch)
      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 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.