org.jmock.core

Class CoreMock

Implemented Interfaces:
InvocationHandler, DynamicMock, Verifiable

public class CoreMock
extends AbstractDynamicMock
implements InvocationHandler

Constructor Summary

CoreMock(Class mockedType, String name)
CoreMock(Class mockedType, String name, InvocationDispatcher invocationDispatcher)

Method Summary

Object
invoke(Object invokedProxy, Method method, Object[] args)
Object
proxy()

Methods inherited from class org.jmock.core.AbstractDynamicMock

addInvokable, getMockName, getMockedType, mockInvocation, mockNameFromClass, reset, setDefaultStub, toString, verify

Constructor Details

CoreMock

public CoreMock(Class mockedType,
                String name)

CoreMock

public CoreMock(Class mockedType,
                String name,
                InvocationDispatcher invocationDispatcher)

Method Details

invoke

public Object invoke(Object invokedProxy,
                     Method method,
                     Object[] args)
            throws Throwable

proxy

public Object proxy()
Specified by:
proxy in interface DynamicMock