EasyMock2Adapter (Hamcrest)
Date: 2018-08-04

org.hamcrest.integration

## Class EasyMock2Adapter

- java.lang.Object
- - org.hamcrest.integration.EasyMock2Adapter

-     public class EasyMock2Adapter
      extends java.lang.Object

  An adapter allowing a Hamcrest `Matcher` to act as an EasyMock `org.easymock.IArgumentMatcher`.
  Author:
    Joe Walnes

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EasyMock2Adapter(Matcher<?> matcher)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static IArgumentMatcher` | `adapt(Matcher<?> matcher)` Convenience factory method that will adapt a Hamcrest `Matcher` to act as an EasyMock `org.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 IArgumentMatcher adapt(Matcher<?> matcher)

      Convenience factory method that will adapt a Hamcrest `Matcher` to act as an EasyMock `org.easymock.IArgumentMatcher` and report it to EasyMock so it can be kept track of.

    - #### matches

          public boolean matches(java.lang.Object argument)

    - #### appendTo

          public void appendTo(java.lang.StringBuffer buffer)