Package org.jmock.core.matcher
Class StatelessInvocationMatcher
java.lang.Object
org.jmock.core.matcher.StatelessInvocationMatcher
- All Implemented Interfaces:
InvocationMatcher,SelfDescribing,Verifiable
- Direct Known Subclasses:
AnyArgumentsMatcher,ArgumentsMatcher,InvokedAfterMatcher,MethodNameMatcher,NoArgumentsMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidinvoked(Invocation invocation) voidverify()Throw an AssertionFailedException if any expectations have not been met.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jmock.core.InvocationMatcher
matchesMethods inherited from interface org.jmock.core.SelfDescribing
describeTo
-
Constructor Details
-
StatelessInvocationMatcher
public StatelessInvocationMatcher()
-
-
Method Details
-
invoked
- Specified by:
invokedin interfaceInvocationMatcher
-
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
-
hasDescription
public boolean hasDescription()- Specified by:
hasDescriptionin interfaceInvocationMatcher
-