org.hamcrest.integration
Class EasyMock2Adapter

java.lang.Object
  extended by org.hamcrest.integration.EasyMock2Adapter
All Implemented Interfaces:
org.easymock.IArgumentMatcher

public class EasyMock2Adapter
extends java.lang.Object
implements org.easymock.IArgumentMatcher

An adapter allowing a Hamcrest Matcher to act as an EasyMock IArgumentMatcher.

Author:
Joe Walnes

Constructor Summary
EasyMock2Adapter(Matcher<?> matcher)
           
 
Method Summary
static org.easymock.IArgumentMatcher adapt(Matcher<?> matcher)
          Convenience factory method that will adapt a Hamcrest Matcher to act as an EasyMock IArgumentMatcher and report it to EasyMock so it can be kept track of.
 void appendTo(java.lang.StringBuffer buffer)
           
 boolean matches(java.lang.Object argument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasyMock2Adapter

public EasyMock2Adapter(Matcher<?> matcher)
Method Detail

adapt

public static org.easymock.IArgumentMatcher adapt(Matcher<?> matcher)
Convenience factory method that will adapt a Hamcrest Matcher to act as an EasyMock IArgumentMatcher and report it to EasyMock so it can be kept track of.


matches

public boolean matches(java.lang.Object argument)
Specified by:
matches in interface org.easymock.IArgumentMatcher

appendTo

public void appendTo(java.lang.StringBuffer buffer)
Specified by:
appendTo in interface org.easymock.IArgumentMatcher