Class MethodProxy

java.lang.Object
org.powermock.api.support.MethodProxy

public class MethodProxy extends Object
  • Constructor Details

    • MethodProxy

      public MethodProxy()
  • Method Details

    • proxy

      public static void proxy(Method method, 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(Class<?> declaringClass, String methodName, InvocationHandler invocationHandler)
      Add a proxy for a method declared in class declaringClass. Each call to the method will be routed to the invocationHandler instead.
    • assertInvocationHandlerNotNull

      private static void assertInvocationHandlerNotNull(InvocationHandler invocationHandler)