Class ClassImposterizer

java.lang.Object
org.jboss.arquillian.graphene.bytebuddy.ClassImposterizer

public class ClassImposterizer extends Object
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 Details

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