Package org.jmock.cglib
Class CGLIBCoreMock
java.lang.Object
org.jmock.core.AbstractDynamicMock
org.jmock.cglib.CGLIBCoreMock
- All Implemented Interfaces:
net.sf.cglib.proxy.Callback,net.sf.cglib.proxy.MethodInterceptor,DynamicMock,Verifiable
public class CGLIBCoreMock
extends AbstractDynamicMock
implements net.sf.cglib.proxy.MethodInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionCGLIBCoreMock(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
Methods inherited from class org.jmock.core.AbstractDynamicMock
addInvokable, getMockedType, getMockName, mockInvocation, mockNameFromClass, reset, setDefaultStub, toString, verify
-
Constructor Details
-
CGLIBCoreMock
-
CGLIBCoreMock
-
CGLIBCoreMock
-
CGLIBCoreMock
public CGLIBCoreMock(Class mockedType, String name, Class[] constructorArgumentTypes, Object[] constructorArguments, InvocationDispatcher invocationDispatcher)
-
-
Method Details
-
proxy
- Specified by:
proxyin interfaceDynamicMock- Specified by:
proxyin classAbstractDynamicMock
-
intercept
public Object intercept(Object thisProxy, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy superProxy) throws Throwable - Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
Throwable
-