org.apache.hivemind.test
Class EqualsMatcher

java.lang.Object
  extended by org.easymock.AbstractMatcher
      extended by org.apache.hivemind.test.AbstractArgumentMatcher
          extended by org.apache.hivemind.test.EqualsMatcher
All Implemented Interfaces:
ArgumentMatcher, org.easymock.ArgumentsMatcher

public class EqualsMatcher
extends AbstractArgumentMatcher

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
EqualsMatcher()
           
 
Method Summary
 boolean compareArguments(java.lang.Object expected, java.lang.Object actual)
          Simple matcher based on equals().
 
Methods inherited from class org.apache.hivemind.test.AbstractArgumentMatcher
argumentMatches
 
Methods inherited from class org.easymock.AbstractMatcher
argumentToString, matches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualsMatcher

public EqualsMatcher()
Method Detail

compareArguments

public boolean compareArguments(java.lang.Object expected,
                                java.lang.Object actual)
Simple matcher based on equals().

Parameters:
expected - The expected argument value
actual - The actual argument value
Returns:
true if the two objects can be considered the same, false otherwise.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.