org.apache.hivemind.test
Class AggregateArgumentsMatcher

java.lang.Object
  extended by org.easymock.AbstractMatcher
      extended by org.apache.hivemind.test.AggregateArgumentsMatcher
All Implemented Interfaces:
org.easymock.ArgumentsMatcher

public class AggregateArgumentsMatcher
extends org.easymock.AbstractMatcher

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
AggregateArgumentsMatcher(ArgumentMatcher matcher)
          Convienice for just a single matcher.
AggregateArgumentsMatcher(ArgumentMatcher[] matchers)
          Aggregates the individual matchers.
 
Method Summary
 boolean matches(java.lang.Object[] expected, java.lang.Object[] actual)
           
 
Methods inherited from class org.easymock.AbstractMatcher
argumentMatches, argumentToString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateArgumentsMatcher

public AggregateArgumentsMatcher(ArgumentMatcher[] matchers)
Aggregates the individual matchers. Each matcher is matched against the argument in the same position. Null matchers, or arguments outside the array range, are handled by a default instance (of EqualsMatcher). This makes it easy to provide special argument matchers for particular arguments.


AggregateArgumentsMatcher

public AggregateArgumentsMatcher(ArgumentMatcher matcher)
Convienice for just a single matcher.

Method Detail

matches

public boolean matches(java.lang.Object[] expected,
                       java.lang.Object[] actual)
Specified by:
matches in interface org.easymock.ArgumentsMatcher
Overrides:
matches in class org.easymock.AbstractMatcher


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