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
public class MethodInterceptorFilter extends Object implements net.sf.cglib.proxy.MethodInterceptor, Serializable
Should be one instance per mock instance, see CglibMockMaker.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodInterceptorFilter(org.mockito.internal.InternalMockHandler handler, org.mockito.mock.MockCreationSettings mockSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.mockito.internal.invocation.MockitoMethodcreateMockitoMethod(Method method)org.mockito.internal.creation.util.MockitoMethodProxycreateMockitoMethodProxy(net.sf.cglib.proxy.MethodProxy methodProxy)org.mockito.invocation.MockHandlergetHandler()Objectintercept(Object proxy, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
-
-
-
Method Detail
-
intercept
public Object intercept(Object proxy, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy) throws Throwable
- Specified by:
interceptin interfacenet.sf.cglib.proxy.MethodInterceptor- Throws:
Throwable
-
getHandler
public org.mockito.invocation.MockHandler getHandler()
-
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)
-
-