org.easymock.internal
Class ArrayMatcher

java.lang.Object
  extended by org.easymock.AbstractMatcher
      extended by org.easymock.internal.ArrayMatcher
All Implemented Interfaces:
java.io.Serializable, ArgumentsMatcher

public class ArrayMatcher
extends AbstractMatcher

See Also:
Serialized Form

Constructor Summary
ArrayMatcher()
           
 
Method Summary
 boolean argumentMatches(java.lang.Object expected, java.lang.Object actual)
          Checks whether an expected argument matches an actual argument; the method is used by AbstractMatcher.matches(Object[], Object[]).
 java.lang.String argumentToString(java.lang.Object argument)
          Converts an argument to a String, used by AbstractMatcher.toString(Object[]).
 
Methods inherited from class org.easymock.AbstractMatcher
matches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayMatcher

public ArrayMatcher()
Method Detail

argumentToString

public java.lang.String argumentToString(java.lang.Object argument)
Description copied from class: AbstractMatcher
Converts an argument to a String, used by AbstractMatcher.toString(Object[]).

Overrides:
argumentToString in class AbstractMatcher
Parameters:
argument - the argument to convert to a String.
Returns:
a String representation of the argument.

argumentMatches

public boolean argumentMatches(java.lang.Object expected,
                               java.lang.Object actual)
Description copied from class: AbstractMatcher
Checks whether an expected argument matches an actual argument; the method is used by AbstractMatcher.matches(Object[], Object[]). The arguments provided to this method are always not null.

Overrides:
argumentMatches in class AbstractMatcher
Parameters:
expected - the expected argument.
actual - the actual argument.
Returns:
true if the arguments match, false otherwise.