org.apache.hivemind.test
Interface ArgumentMatcher
- All Known Implementing Classes:
- ArrayMatcher, EqualsMatcher, RegexpMatcher, TypeMatcher
- 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 |
matches(java.lang.Object expected,
java.lang.Object actual)
Returns true if the two objects are considered the same. |
matches
public boolean matches(java.lang.Object expected,
java.lang.Object actual)
- Returns true if the two objects are considered the same. This method is only invoked if both
arguments are non-null and not the same object (identity comparison, not
equals()
).
- Parameters:
expected
- The expected argument valueactual
- The actual argument value