InvocationMatcher
, SelfDescribing
, Verifiable
public class MethodNameMatcher extends StatelessInvocationMatcher
Constructor | Description |
---|---|
MethodNameMatcher(java.lang.String methodName) |
|
MethodNameMatcher(Constraint constraint) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.StringBuffer |
describeTo(java.lang.StringBuffer buffer) |
Appends the description of this object to the buffer.
|
boolean |
matches(Invocation invocation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasDescription, invoked, verify
public MethodNameMatcher(Constraint constraint)
public MethodNameMatcher(java.lang.String methodName)
public boolean matches(Invocation invocation)
public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribing
buffer
- The buffer that the description is appended to.