MethodNameMatcher
Date: 2015-09-15

org.jmock.core.matcher

## Class MethodNameMatcher

- java.lang.Object
- - org.jmock.core.matcher.StatelessInvocationMatcher
  - - org.jmock.core.matcher.MethodNameMatcher

- All Implemented Interfaces:
    InvocationMatcher, SelfDescribing, Verifiable

      public class MethodNameMatcher
      extends StatelessInvocationMatcher

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MethodNameMatcher(Constraint constraint)`
    `MethodNameMatcher(java.lang.String methodName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.StringBuffer` | `describeTo(java.lang.StringBuffer buffer)` Appends the description of this object to the buffer.
    `boolean` | `matches(Invocation invocation)`

    - ### Methods inherited from class org.jmock.core.matcher.StatelessInvocationMatcher

      `hasDescription, invoked, verify`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MethodNameMatcher

          public MethodNameMatcher(Constraint constraint)

    - #### MethodNameMatcher

          public MethodNameMatcher(java.lang.String methodName)

  - ### Method Detail

    - #### matches

          public boolean matches(Invocation invocation)

    - #### describeTo

          public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)

      Description copied from interface: `SelfDescribing`
      Appends the description of this object to the buffer.
      Parameters:
        `buffer` - The buffer that the description is appended to.
      Returns:
        The buffer passed to the invokedMethod.