org.apache.hivemind.test
Interface ArgumentMatcher
- All Known Implementing Classes:
- AbstractArgumentMatcher
- public interface ArgumentMatcher
Used with AggregateArgumentsMatcher
to provide matching logic
for a single argument.
- Since:
- 1.1
- Author:
- Howard M. Lewis Ship
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. |
compareArguments
public 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. This method is only invoked if both arguments are non-null and not the
same object (based on identity comparison, not
equals()
).
- Parameters:
expected
- The expected argument valueactual
- The actual argument value