org.jmock.cglib
Class CGLIBCoreMock
java.lang.Object
org.jmock.core.AbstractDynamicMock
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)
|
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)
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