org.jmock.core.matcher

Class MethodNameMatcher

Implemented Interfaces:
InvocationMatcher, SelfDescribing, Verifiable

public class MethodNameMatcher
extends StatelessInvocationMatcher

Constructor Summary

MethodNameMatcher(String methodName)
MethodNameMatcher(Constraint constraint)

Method Summary

StringBuffer
describeTo(StringBuffer buffer)
boolean
matches(Invocation invocation)

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

hasDescription, invoked, verify

Constructor Details

MethodNameMatcher

public MethodNameMatcher(String methodName)

MethodNameMatcher

public MethodNameMatcher(Constraint constraint)

Method Details

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Specified by:
describeTo in interface SelfDescribing

matches

public boolean matches(Invocation invocation)
Specified by:
matches in interface InvocationMatcher