org.jmock.cglib
Class CGLIBCoreMock

java.lang.Object
  extended by org.jmock.core.AbstractDynamicMock
      extended by org.jmock.cglib.CGLIBCoreMock
All Implemented Interfaces:
Callback, MethodInterceptor, DynamicMock, Verifiable

public class CGLIBCoreMock
extends AbstractDynamicMock
implements MethodInterceptor


Constructor Summary
CGLIBCoreMock(Class mockedType, String name)
           
CGLIBCoreMock(Class mockedType, String name, Class[] constructorArgumentTypes, Object[] constructorArguments)
           
CGLIBCoreMock(Class mockedType, String name, Class[] constructorArgumentTypes, Object[] constructorArguments, InvocationDispatcher invocationDispatcher)
           
CGLIBCoreMock(Class mockedType, String name, InvocationDispatcher invocationDispatcher)
           
 
Method Summary
 Object intercept(Object thisProxy, Method method, Object[] args, MethodProxy superProxy)
           
 Object proxy()
           
 
Methods inherited from class org.jmock.core.AbstractDynamicMock
addInvokable, getMockedType, getMockName, mockInvocation, mockNameFromClass, reset, setDefaultStub, toString, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CGLIBCoreMock

public CGLIBCoreMock(Class mockedType,
                     String name)

CGLIBCoreMock

public CGLIBCoreMock(Class mockedType,
                     String name,
                     Class[] constructorArgumentTypes,
                     Object[] constructorArguments)

CGLIBCoreMock

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

CGLIBCoreMock

public CGLIBCoreMock(Class mockedType,
                     String name,
                     Class[] constructorArgumentTypes,
                     Object[] constructorArguments,
                     InvocationDispatcher invocationDispatcher)
Method Detail

proxy

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

intercept

public Object intercept(Object thisProxy,
                        Method method,
                        Object[] args,
                        MethodProxy superProxy)
                 throws Throwable
Specified by:
intercept in interface MethodInterceptor
Throws:
Throwable