Package org.jmock.core
Class AbstractDynamicMock
java.lang.Object
org.jmock.core.AbstractDynamicMock
- All Implemented Interfaces:
DynamicMock,Verifiable
- Direct Known Subclasses:
CGLIBCoreMock,CoreMock
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDynamicMock(Class mockedType, String name) AbstractDynamicMock(Class mockedType, String name, InvocationDispatcher invocationDispatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInvokable(Invokable invokable) protected ObjectmockInvocation(Invocation invocation) static Stringabstract Objectproxy()voidreset()voidsetDefaultStub(Stub newDefaultStub) toString()voidverify()Throw an AssertionFailedException if any expectations have not been met.
-
Constructor Details
-
AbstractDynamicMock
-
AbstractDynamicMock
public AbstractDynamicMock(Class mockedType, String name, InvocationDispatcher invocationDispatcher)
-
-
Method Details
-
proxy
- Specified by:
proxyin interfaceDynamicMock
-
getMockedType
- Specified by:
getMockedTypein interfaceDynamicMock
-
setDefaultStub
- Specified by:
setDefaultStubin interfaceDynamicMock
-
addInvokable
- Specified by:
addInvokablein interfaceDynamicMock
-
reset
public void reset()- Specified by:
resetin interfaceDynamicMock
-
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
-
toString
-
getMockName
-
mockNameFromClass
-
mockInvocation
- Throws:
Throwable
-