Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Nested Class Summary
`static class` | `ClassImposterizer.ClassWithSuperclassToWorkAroundCglibBug`

Field Summary
`static ClassImposterizer` | `INSTANCE`

Method Summary
`boolean` | `canImposterise(java.lang.Class<?> type)`
`
`<T> T`
` | `imposterise(org.mockito.cglib.proxy.MethodInterceptor interceptor, java.lang.Class<T> mockedType, java.lang.Class<?>... ancillaryTypes)`
`
`<T> T`
` | `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`

Field Detail

### INSTANCE

    public static final ClassImposterizer INSTANCE

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD