org.apache.hivemind.test
Class ExceptionAwareArgumentsMatcher

java.lang.Object
  |
  +--org.easymock.AbstractMatcher
        |
        +--org.apache.hivemind.test.ExceptionAwareArgumentsMatcher
All Implemented Interfaces:
org.easymock.ArgumentsMatcher

public class ExceptionAwareArgumentsMatcher
extends org.easymock.AbstractMatcher

An EasyMock ArgumentsMatcher that is savvy about Throwables ... it just compares the type (since exceptions don't compare well). This allows a check that the right type of exception was thrown (even if it doesn't check that the exception's message and other properties are correct).

Author:
Howard Lewis Ship

Constructor Summary
ExceptionAwareArgumentsMatcher()
           
 
Method Summary
protected  boolean argumentMatches(java.lang.Object expected, java.lang.Object actual)
           
 
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

ExceptionAwareArgumentsMatcher

public ExceptionAwareArgumentsMatcher()
Method Detail

argumentMatches

protected boolean argumentMatches(java.lang.Object expected,
                                  java.lang.Object actual)
Overrides:
argumentMatches in class org.easymock.AbstractMatcher