org.jmock.dynamic
Class InvocationMocker
java.lang.Object
org.jmock.dynamic.InvocationMocker
- All Implemented Interfaces:
- Invokable, Verifiable
- public class InvocationMocker
- extends java.lang.Object
- implements Invokable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InvocationMocker
public InvocationMocker(java.lang.String methodName,
InvocationMatcher arguments,
Stub stub)
InvocationMocker
public InvocationMocker(InvocationMatcher[] matchers,
Stub stub)
InvocationMocker
public InvocationMocker(Stub stub)
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface Invokable
matches
public boolean matches(Invocation invocation)
- Specified by:
matches
in interface Invokable
invoke
public java.lang.Object invoke(Invocation invocation)
throws java.lang.Throwable
- Specified by:
invoke
in interface Invokable
- Throws:
java.lang.Throwable
verify
public void verify()
- Description copied from interface:
Verifiable
- Throw an AssertionFailedException if any expectations have not been met.
- Specified by:
verify
in interface Verifiable
addMatcher
public InvocationMocker addMatcher(InvocationMatcher matcher)
setStub
public void setStub(Stub stub)
Copyright © 2003 jMock.org. All Rights Reserved.