Package org.powermock.api.support
Class MethodProxy
- java.lang.Object
-
- org.powermock.api.support.MethodProxy
-
public class MethodProxy extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MethodProxy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
assertInvocationHandlerNotNull(java.lang.reflect.InvocationHandler invocationHandler)
static void
proxy(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.reflect.InvocationHandler invocationHandler)
Add a proxy for a method declared in classdeclaringClass
.static void
proxy(java.lang.reflect.Method method, java.lang.reflect.InvocationHandler invocationHandler)
Add a proxy for this method.
-
-
-
Method Detail
-
proxy
public static void proxy(java.lang.reflect.Method method, java.lang.reflect.InvocationHandler invocationHandler)
Add a proxy for this method. Each call to the method will be routed to the invocationHandler instead.
-
proxy
public static void proxy(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.reflect.InvocationHandler invocationHandler)
Add a proxy for a method declared in classdeclaringClass
. Each call to the method will be routed to the invocationHandler instead.
-
assertInvocationHandlerNotNull
private static void assertInvocationHandlerNotNull(java.lang.reflect.InvocationHandler invocationHandler)
-
-