Package org.hamcrest.object
Class HasEqualValues.FieldMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.DiagnosingMatcher<java.lang.Object>
-
- org.hamcrest.object.HasEqualValues.FieldMatcher
-
- All Implemented Interfaces:
Matcher<java.lang.Object>
,SelfDescribing
- Enclosing class:
- HasEqualValues<T>
private static class HasEqualValues.FieldMatcher extends DiagnosingMatcher<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description FieldMatcher(java.lang.reflect.Field field, java.lang.Object expectedObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeTo(Description description)
Generates a description of the object.protected boolean
matches(java.lang.Object item, Description mismatch)
-
Methods inherited from class org.hamcrest.DiagnosingMatcher
describeMismatch, matches
-
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
-
-
-
Field Detail
-
field
private final java.lang.reflect.Field field
-
matcher
private final Matcher<java.lang.Object> matcher
-
-
Method Detail
-
matches
protected boolean matches(java.lang.Object item, Description mismatch)
- Specified by:
matches
in classDiagnosingMatcher<java.lang.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.
-
-