Class ClassImposterizer
java.lang.Object
org.jboss.arquillian.graphene.bytebuddy.ClassImposterizer
Thanks to jMock guys for this handy class that wraps all the cglib magic.
In particular it workarounds a cglib limitation by allowing to proxy a class even if the misses a no args constructor.
- Author:
- Mario Fusco, Sebastian Jancke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TimposteriseClass(MethodInterceptor interceptor, Class<?> mockedType, Class<?>... ancillaryTypes) protected <T> TimposteriseInterface(MethodInterceptor interceptor, Class<?> mockedInterface, Class<?>... ancillaryTypes) protected <T> TimposteriseProtected(MethodInterceptor interceptor, Class<?> mockedType, Class<?>... ancillaryTypes)
-
Field Details
-
TAG
- See Also:
-
-
Constructor Details
-
ClassImposterizer
protected ClassImposterizer()
-
-
Method Details
-
imposteriseProtected
protected <T> T imposteriseProtected(MethodInterceptor interceptor, Class<?> mockedType, Class<?>... ancillaryTypes) -
imposteriseClass
protected <T> T imposteriseClass(MethodInterceptor interceptor, Class<?> mockedType, Class<?>... ancillaryTypes) -
imposteriseInterface
protected <T> T imposteriseInterface(MethodInterceptor interceptor, Class<?> mockedInterface, Class<?>... ancillaryTypes)
-