|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.easymock.AbstractMatcher
org.apache.hivemind.test.AbstractArgumentMatcher
org.apache.hivemind.test.TypeMatcher
An ArgumentMatcher that only compares the types of
the two objects, not their actual values. This is useful for Throwable arguments, (since
Throwables rarely implement a useful equals). This allows a check that the right
type of exception was passed in (even if it doesn't check that the exception's message and other
properties are correct).
| Constructor Summary | |
TypeMatcher()
|
|
| Method Summary | |
boolean |
compareArguments(java.lang.Object expected,
java.lang.Object actual)
Compares an expected argument value (provided when training the mock object), against the actual argument value. |
| Methods inherited from class org.apache.hivemind.test.AbstractArgumentMatcher |
argumentMatches |
| Methods inherited from class org.easymock.AbstractMatcher |
argumentToString, matches, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TypeMatcher()
| Method Detail |
public boolean compareArguments(java.lang.Object expected,
java.lang.Object actual)
ArgumentMatcherequals()).
expected - The expected argument valueactual - The actual argument value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||