org.mockito.internal.creation.jmock
Class ClassImposterizer
java.lang.Object
org.mockito.internal.creation.jmock.ClassImposterizer
public class ClassImposterizer
- extends java.lang.Object
Thanks to jMock guys for this handy class that wraps all the cglib magic.
Method Summary |
boolean |
canImposterise(java.lang.Class<?> type)
|
|
imposterise(org.mockito.cglib.proxy.MethodInterceptor interceptor,
java.lang.Class<T> mockedType,
java.lang.Class<?>... ancillaryTypes)
|
|
imposterise(org.mockito.cglib.proxy.MethodInterceptor interceptor,
java.lang.Class<T> mockedType,
java.util.Collection<java.lang.Class> ancillaryTypes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final ClassImposterizer INSTANCE
canImposterise
public boolean canImposterise(java.lang.Class<?> type)
imposterise
public <T> T imposterise(org.mockito.cglib.proxy.MethodInterceptor interceptor,
java.lang.Class<T> mockedType,
java.util.Collection<java.lang.Class> ancillaryTypes)
imposterise
public <T> T imposterise(org.mockito.cglib.proxy.MethodInterceptor interceptor,
java.lang.Class<T> mockedType,
java.lang.Class<?>... ancillaryTypes)