Package org.jmock.core.matcher
Class InvokeAtLeastOnceMatcher
java.lang.Object
org.jmock.core.matcher.InvokedRecorder
org.jmock.core.matcher.InvokeAtLeastOnceMatcher
- All Implemented Interfaces:
InvocationMatcher,SelfDescribing,Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeTo(StringBuffer buffer) Appends the description of this object to the buffer.booleanvoidverify()Throw an AssertionFailedException if any expectations have not been met.Methods inherited from class org.jmock.core.matcher.InvokedRecorder
getInvocationCount, hasBeenInvoked, invoked, matches, verifyHasBeenInvoked, verifyHasBeenInvokedExactly
-
Constructor Details
-
InvokeAtLeastOnceMatcher
public InvokeAtLeastOnceMatcher()
-
-
Method Details
-
verify
public void verify()Description copied from interface:VerifiableThrow an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.- Specified by:
verifyin interfaceVerifiable- Overrides:
verifyin classInvokedRecorder
-
hasDescription
public boolean hasDescription()- Specified by:
hasDescriptionin interfaceInvocationMatcher- Overrides:
hasDescriptionin classInvokedRecorder
-
describeTo
Description copied from interface:SelfDescribingAppends the description of this object to the buffer.- Specified by:
describeToin interfaceSelfDescribing- Overrides:
describeToin classInvokedRecorder- Parameters:
buffer- The buffer that the description is appended to.- Returns:
- The buffer passed to the invokedMethod.
-