org.apache.hivemind.test
Class ArrayMatcher

java.lang.Object
  extended byorg.apache.hivemind.test.ArrayMatcher
All Implemented Interfaces:
ArgumentMatcher

public class ArrayMatcher
extends java.lang.Object
implements ArgumentMatcher

Used when the arguments to compare are a non-primitive array type.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ArrayMatcher()
           
 
Method Summary
 boolean matches(java.lang.Object expected, java.lang.Object actual)
          Returns true if the two objects are considered the same.
 
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

matches

public boolean matches(java.lang.Object expected,
                       java.lang.Object actual)
Description copied from interface: ArgumentMatcher
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()).

Specified by:
matches in interface ArgumentMatcher
Parameters:
expected - The expected argument value
actual - The actual argument value