org.easymock
Interface ArgumentsMatcher

All Known Implementing Classes:
AbstractMatcher

public interface ArgumentsMatcher

A comparison function that is used to match arguments.

See Also:
MockControl.setDefaultMatcher(org.easymock.ArgumentsMatcher), MockControl.setMatcher(org.easymock.ArgumentsMatcher), MockControl.EQUALS_MATCHER, MockControl.ARRAY_MATCHER, MockControl.ALWAYS_MATCHER

Method Summary
 boolean matches(java.lang.Object[] expected, java.lang.Object[] actual)
          Matches two arrays of arguments.
 java.lang.String toString(java.lang.Object[] arguments)
          Returns a string representation of the arguments.
 

Method Detail

matches

public boolean matches(java.lang.Object[] expected,
                       java.lang.Object[] actual)
Matches two arrays of arguments.

Parameters:
expected - the expected arguments.
actual - the actual arguments.
Returns:
true if the arguments match, false otherwise.

toString

public java.lang.String toString(java.lang.Object[] arguments)
Returns a string representation of the arguments.

Parameters:
arguments - the arguments to be used in the string representation.
Returns:
a string representation of the arguments.


Copyright © 2001-2005 OFFIS. This documentation is provided under the terms of the MIT licence.