org.virtualmock.matcher
Class EqualsMatcher

java.lang.Object
  extended byorg.virtualmock.matcher.EqualsMatcher
All Implemented Interfaces:
ArgMatcher

public class EqualsMatcher
extends java.lang.Object
implements ArgMatcher

An implementation of ArgMatcher that uses the equals() method to perform matching.

Version:
$Revision: 1.6 $
Author:
Chad Woolley

Constructor Summary
EqualsMatcher()
           
 
Method Summary
 boolean matches(java.lang.Object expectedArgument, java.lang.Object actualArgument)
          Returns true if expectedArgument.equals(actualArgument).
 
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

matches

public boolean matches(java.lang.Object expectedArgument,
                       java.lang.Object actualArgument)
Returns true if expectedArgument.equals(actualArgument).

Specified by:
matches in interface ArgMatcher
Parameters:
expectedArgument - The expected argument value that was passed when the mocked call was recorded
actualArgument - The actual argument value that was passed when the class under test invoked the recorded call.
Returns:
true if expectedArgument.equals(actualArgument)


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.