org.powermock.api.support
Class Stubber

java.lang.Object
  extended by org.powermock.api.support.Stubber

public class Stubber
extends Object


Constructor Summary
Stubber()
           
 
Method Summary
static void stubMethod(Class<?> declaringClass, String methodName, Object returnObject)
          Add a method that should be intercepted and return another value ( returnObject) (i.e. the method is stubbed).
static void stubMethod(Method method, Object returnObject)
          Add a method that should be intercepted and return another value ( returnObject) (i.e. the method is stubbed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stubber

public Stubber()
Method Detail

stubMethod

public static void stubMethod(Method method,
                              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(Class<?> declaringClass,
                              String methodName,
                              Object returnObject)
Add a method that should be intercepted and return another value ( returnObject) (i.e. the method is stubbed).



Copyright © 2007-2012. All Rights Reserved.