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