public class InvokedRecorder extends java.lang.Object implements InvocationMatcher
| Constructor and Description |
|---|
InvokedRecorder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuffer |
describeTo(java.lang.StringBuffer buffer)
Appends the description of this object to the buffer.
|
int |
getInvocationCount() |
boolean |
hasBeenInvoked() |
boolean |
hasDescription() |
void |
invoked(Invocation invocation) |
boolean |
matches(Invocation invocation) |
void |
verify()
Throw an AssertionFailedException if any expectations have not been met.
|
void |
verifyHasBeenInvoked() |
void |
verifyHasBeenInvokedExactly(int expectedCount) |
public int getInvocationCount()
public boolean hasBeenInvoked()
public boolean matches(Invocation invocation)
matches in interface InvocationMatcherpublic void invoked(Invocation invocation)
invoked in interface InvocationMatcherpublic boolean hasDescription()
hasDescription in interface InvocationMatcherpublic java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribingdescribeTo in interface SelfDescribingbuffer - The buffer that the description is appended to.public void verify()
Verifiableverify in interface Verifiablepublic void verifyHasBeenInvoked()
public void verifyHasBeenInvokedExactly(int expectedCount)