* * *

|  [ **Overview** ](../../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/EasyMock2Adapter.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../../deprecated-list.html) |  [ **Index** ](../../../index-all.html) |  [ **Help** ](../../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
PREV CLASS [ **NEXT CLASS** ](../../../org/hamcrest/integration/JMock1Adapter.html "class in org.hamcrest.integration") |  [ **FRAMES** ](../../../index.html?org/hamcrest/integration/EasyMock2Adapter.html) [ **NO FRAMES** ](EasyMock2Adapter.html) [ **All Classes** ](../../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD |  CONSTR  |  METHOD  |  DETAIL: FIELD |  CONSTR  |  METHOD   
  
* * *

##  org.hamcrest.integration  
Class EasyMock2Adapter

    
    
    java.lang.Object
      ![extended by ](../../../resources/inherit.gif)**org.hamcrest.integration.EasyMock2Adapter**
    

**All Implemented Interfaces:**      org.easymock.IArgumentMatcher

* * *
    
    
    public class **EasyMock2Adapter** extends java.lang.Objectimplements org.easymock.IArgumentMatcher

An adapter allowing a Hamcrest [ ` Matcher `
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") to act as an
EasyMock ` IArgumentMatcher ` .

**Author:**

     Joe Walnes 

* * *

**Constructor Summary**  
---  
` **[ EasyMock2Adapter
](../../../org/hamcrest/integration/EasyMock2Adapter.html#EasyMock2Adapter\(org.hamcrest.Matcher\))
** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in
org.hamcrest") <?> matcher) `  
  
**Method Summary**  
---  
` static org.easymock.IArgumentMatcher ` |  ` **[ adapt ](../../../org/hamcrest/integration/EasyMock2Adapter.html#adapt\(org.hamcrest.Matcher\)) ** ( [ Matcher ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") <?> matcher) `   
Convenience factory method that will adapt a Hamcrest [ ` Matcher `
](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") to act as an
EasyMock ` IArgumentMatcher ` and report it to EasyMock so it can be kept
track of.  
` void ` |  ` **[ appendTo ](../../../org/hamcrest/integration/EasyMock2Adapter.html#appendTo\(java.lang.StringBuffer\)) ** (java.lang.StringBuffer buffer) `   
  
` boolean ` |  ` **[ matches ](../../../org/hamcrest/integration/EasyMock2Adapter.html#matches\(java.lang.Object\)) ** (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](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<?> matcher)

**Method Detail**  
---  
  
###  adapt

    
    
    public static org.easymock.IArgumentMatcher **adapt**([Matcher](../../../org/hamcrest/Matcher.html "interface in org.hamcrest")<?> matcher)

     Convenience factory method that will adapt a Hamcrest [ ` Matcher ` ](../../../org/hamcrest/Matcher.html "interface in org.hamcrest") 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 `

    

* * *

|  [ **Overview** ](../../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/EasyMock2Adapter.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../../deprecated-list.html) |  [ **Index** ](../../../index-all.html) |  [ **Help** ](../../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
PREV CLASS [ **NEXT CLASS** ](../../../