Class HasEqualValues.FieldMatcher

java.lang.Object
org.hamcrest.BaseMatcher<Object>
org.hamcrest.DiagnosingMatcher<Object>
org.hamcrest.object.HasEqualValues.FieldMatcher
All Implemented Interfaces:
Matcher<Object>, SelfDescribing
Enclosing class:
HasEqualValues<T>

private static class HasEqualValues.FieldMatcher extends DiagnosingMatcher<Object>
  • Field Details

  • Constructor Details

    • FieldMatcher

      public FieldMatcher(Field field, Object expectedObject)
  • Method Details

    • matches

      protected boolean matches(Object item, 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.