org.virtualmock.matcher
Class AlwaysMatcher

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

public class AlwaysMatcher
extends java.lang.Object
implements ArgMatcher

An implementation of ArgMatcher that ignores the actual argument values, and always passes matching and returns true.

Version:
$Revision: 1.5 $
Author:
Chad Woolley

Constructor Summary
AlwaysMatcher()
           
 
Method Summary
 boolean matches(java.lang.Object expectedArgument, java.lang.Object actualArgument)
          Returns true always.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysMatcher

public AlwaysMatcher()
Method Detail

matches

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

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 always


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