org.easymock
Interface ArgumentsMatcher
public interface ArgumentsMatcher
A comparison function that is used to match arguments.
MockControl.setDefaultMatcher
, MockControl.setMatcher
, MockControl.EQUALS_MATCHER
, MockControl.ARRAY_MATCHER
, MockControl.ALWAYS_MATCHER
boolean | matches(Object[] expected, Object[] actual) - Matches two arrays of arguments.
|
String | toString(Object[] arguments) - Returns a string representation of the arguments.
|
matches
public boolean matches(Object[] expected,
Object[] actual)
Matches two arrays of arguments.
expected
- the expected arguments.actual
- the actual arguments.
- true if the arguments match, false otherwise.
toString
public String toString(Object[] arguments)
Returns a string representation of the arguments.
arguments
- the arguments to be used in the string representation.
- a string representation of the arguments.