|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmock.core.matcher.InvokedRecorder
org.jmock.core.matcher.InvokeCountMatcher
public class InvokeCountMatcher
Constructor Summary | |
---|---|
InvokeCountMatcher(int expectedCount)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.jmock.core.matcher.InvokedRecorder |
---|
getInvocationCount, hasBeenInvoked, invoked, verifyHasBeenInvoked, verifyHasBeenInvokedExactly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvokeCountMatcher(int expectedCount)
Method Detail |
---|
public boolean matches(Invocation invocation)
matches
in interface InvocationMatcher
matches
in class InvokedRecorder
public void verify()
Verifiable
verify
in interface Verifiable
verify
in class InvokedRecorder
public boolean hasDescription()
hasDescription
in interface InvocationMatcher
hasDescription
in class InvokedRecorder
public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribing
describeTo
in interface SelfDescribing
describeTo
in class InvokedRecorder
buffer
- The buffer that the description is appended to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |