|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An ArgMatcher allows different rules to be set for matching arguments to mock methods. Each implementation of ArgMatcher will define a specific rule for matching of an argument.
Several common implementations of ArgMatchers are provided with VirtualMock, and users can create their own custom implementations to define their own custom matching rules.
| Method Summary | |
boolean |
matches(java.lang.Object expectedArgument,
java.lang.Object actualArgument)
The method that VirtualMock will call to perform matching of an argument. |
| Method Detail |
public boolean matches(java.lang.Object expectedArgument,
java.lang.Object actualArgument)
expectedArgument - The expected argument value that was passed when
the mocked call was recordedactualArgument - The actual argument value that was passed when the
class under test invoked the recorded call.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||