Package org.powermock.api.support
Class Stubber
- java.lang.Object
-
- org.powermock.api.support.Stubber
-
public class Stubber extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Stubber()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
stubMethod(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.Object returnObject)
Add a method that should be intercepted and return another value (returnObject
) (i.e.static void
stubMethod(java.lang.reflect.Method method, java.lang.Object returnObject)
Add a method that should be intercepted and return another value (returnObject
) (i.e.
-
-
-
Method Detail
-
stubMethod
public static void stubMethod(java.lang.reflect.Method method, java.lang.Object returnObject)
Add a method that should be intercepted and return another value (returnObject
) (i.e. the method is stubbed).
-
stubMethod
public static void stubMethod(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.Object returnObject)
Add a method that should be intercepted and return another value (returnObject
) (i.e. the method is stubbed).
-
-