org.easymock

Interface ArgumentsMatcher

public interface ArgumentsMatcher

Deprecated: Since EasyMock 2.0, ArgumentsMatchers are only supported for the legacy MockControl. For mock objects generated by the methods on EasyMock, there are per-argument matchers available. For more information, see the EasyMock documentation.

A comparison function that is used to match arguments.

See Also: MockControl MockControl EQUALS_MATCHER ARRAY_MATCHER ALWAYS_MATCHER

Method Summary
booleanmatches(Object[] expected, Object[] actual)
Matches two arrays of arguments.
StringtoString(Object[] arguments)
Returns a string representation of the arguments.

Method Detail

matches

public boolean matches(Object[] expected, 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 String toString(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-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>