Class CGLIBCoreMock

  • All Implemented Interfaces:
    net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor, DynamicMock, Verifiable

    public class CGLIBCoreMock
    extends AbstractDynamicMock
    implements net.sf.cglib.proxy.MethodInterceptor
    • Constructor Detail

      • CGLIBCoreMock

        public CGLIBCoreMock​(java.lang.Class mockedType,
                             java.lang.String name)
      • CGLIBCoreMock

        public CGLIBCoreMock​(java.lang.Class mockedType,
                             java.lang.String name,
                             java.lang.Class[] constructorArgumentTypes,
                             java.lang.Object[] constructorArguments)
      • CGLIBCoreMock

        public CGLIBCoreMock​(java.lang.Class mockedType,
                             java.lang.String name,
                             InvocationDispatcher invocationDispatcher)
      • CGLIBCoreMock

        public CGLIBCoreMock​(java.lang.Class mockedType,
                             java.lang.String name,
                             java.lang.Class[] constructorArgumentTypes,
                             java.lang.Object[] constructorArguments,
                             InvocationDispatcher invocationDispatcher)
    • Method Detail

      • intercept

        public java.lang.Object intercept​(java.lang.Object thisProxy,
                                          java.lang.reflect.Method method,
                                          java.lang.Object[] args,
                                          net.sf.cglib.proxy.MethodProxy superProxy)
                                   throws java.lang.Throwable
        Specified by:
        intercept in interface net.sf.cglib.proxy.MethodInterceptor
        Throws:
        java.lang.Throwable