|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.argumentmatcher.impl.RefEqArgumentMatcher
public class RefEqArgumentMatcher
A matcher for checking whether an argument equals a given value. Reflection is used to compare all fields of these values.
| Constructor Summary | |
|---|---|
RefEqArgumentMatcher(java.lang.Object value)
Creates a matcher for the given value. |
|
| Method Summary | |
|---|---|
boolean |
matches(java.lang.Object argument,
java.lang.Object argumentAtInvocationTime)
Returns true if the given object matches the expected argument, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RefEqArgumentMatcher(java.lang.Object value)
value - The expected value| Method Detail |
|---|
public boolean matches(java.lang.Object argument,
java.lang.Object argumentAtInvocationTime)
matches in interface ArgumentMatcherargument - The argument that were used by reference, not nullargumentAtInvocationTime - Copy of the argument, taken at the time that the invocation was performed, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||