public class Stubber
extends java.lang.Object
Constructor and Description |
---|
Stubber() |
Modifier and Type | Method and 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. |
public static void stubMethod(java.lang.reflect.Method method, java.lang.Object returnObject)
returnObject
) (i.e. the method is stubbed).public static void stubMethod(java.lang.Class<?> declaringClass, java.lang.String methodName, java.lang.Object returnObject)
returnObject
) (i.e. the method is stubbed).