|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hamcrest.BaseMatcher<T> org.axonframework.test.matchers.EqualFieldsMatcher<T>
T
- The type of objectpublic class EqualFieldsMatcher<T>
Matcher that will match an Object if all the fields on that Object contain values equal to the same field in the expected instance.
Constructor Summary | |
---|---|
EqualFieldsMatcher(T expected)
Initializes an EqualFieldsMatcher that will match an object with equal properties as the given expected object. |
|
EqualFieldsMatcher(T expected,
FieldFilter filter)
Initializes an EqualFieldsMatcher that will match an object with equal properties as the given expected object. |
Method Summary | |
---|---|
void |
describeTo(org.hamcrest.Description description)
|
Field |
getFailedField()
Returns the field that failed comparison, if any. |
Object |
getFailedFieldActualValue()
Returns the actual value of a failed field comparison, if any. |
Object |
getFailedFieldExpectedValue()
Returns the expected value of a failed field comparison, if any. |
boolean |
matches(Object item)
|
Methods inherited from class org.hamcrest.BaseMatcher |
---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EqualFieldsMatcher(T expected)
expected
object.
expected
- The expected objectpublic EqualFieldsMatcher(T expected, FieldFilter filter)
expected
object.
expected
- The expected objectfilter
- The filter describing the fields to include in the comparisonMethod Detail |
---|
public boolean matches(Object item)
public Field getFailedField()
matches(Object)
is
called and a mismatch has been detected.
public Object getFailedFieldExpectedValue()
matches(Object)
is called and a mismatch has been detected.
public Object getFailedFieldActualValue()
matches(Object)
is called and a mismatch has been detected.
public void describeTo(org.hamcrest.Description description)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |