Class MethodNameMatcher

All Implemented Interfaces:
InvocationMatcher, SelfDescribing, Verifiable

public class MethodNameMatcher extends StatelessInvocationMatcher
  • Constructor Details

    • MethodNameMatcher

      public MethodNameMatcher(Constraint constraint)
    • MethodNameMatcher

      public MethodNameMatcher(String methodName)
  • Method Details

    • matches

      public boolean matches(Invocation invocation)
    • describeTo

      public StringBuffer describeTo(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.