Class MethodInterceptorFilter

java.lang.Object
org.powermock.api.mockito.repackaged.MethodInterceptorFilter
All Implemented Interfaces:
Serializable, net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor
Direct Known Subclasses:
PowerMockMethodInterceptorFilter

public class MethodInterceptorFilter extends Object implements net.sf.cglib.proxy.MethodInterceptor, Serializable
Should be one instance per mock instance, see CglibMockMaker.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • handler

      private final org.mockito.internal.InternalMockHandler handler
    • objectMethodsGuru

      final org.mockito.internal.util.ObjectMethodsGuru objectMethodsGuru
    • mockSettings

      private final org.mockito.mock.MockCreationSettings mockSettings
    • acrossJVMSerializationFeature

      private final AcrossJVMSerializationFeature acrossJVMSerializationFeature
  • Constructor Details

    • MethodInterceptorFilter

      public MethodInterceptorFilter(org.mockito.internal.InternalMockHandler handler, org.mockito.mock.MockCreationSettings mockSettings)
  • Method Details

    • intercept

      public Object intercept(Object proxy, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy) throws Throwable
      Specified by:
      intercept in interface net.sf.cglib.proxy.MethodInterceptor
      Throws:
      Throwable
    • getHandler

      public org.mockito.invocation.MockHandler getHandler()
    • hashCodeForMock

      private int hashCodeForMock(Object mock)
    • createMockitoMethodProxy

      public org.mockito.internal.creation.util.MockitoMethodProxy createMockitoMethodProxy(net.sf.cglib.proxy.MethodProxy methodProxy)
    • createMockitoMethod

      public org.mockito.internal.invocation.MockitoMethod createMockitoMethod(Method method)