org.powermock.api.support.membermodification.strategy.impl
Class MethodStubStrategyImpl<T>

java.lang.Object
  extended by org.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl<T>
All Implemented Interfaces:
MethodStubStrategy<T>

public class MethodStubStrategyImpl<T>
extends Object
implements MethodStubStrategy<T>


Constructor Summary
MethodStubStrategyImpl(Method method)
           
 
Method Summary
 void andReturn(T returnValue)
          Deprecated. 
 void toReturn(T returnValue)
          Stubs the method to return the specified returnValue.
 void toThrow(Throwable throwable)
          Stubs the method to throw the specified throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodStubStrategyImpl

public MethodStubStrategyImpl(Method method)
Method Detail

andReturn

@Deprecated
public void andReturn(T returnValue)
Deprecated. 

Description copied from interface: MethodStubStrategy
Stubs the method to return the specified returnValue.

Specified by:
andReturn in interface MethodStubStrategy<T>
Parameters:
returnValue - The value that will be returned.

toThrow

public void toThrow(Throwable throwable)
Description copied from interface: MethodStubStrategy
Stubs the method to throw the specified throwable.

Specified by:
toThrow in interface MethodStubStrategy<T>
Parameters:
throwable - the throwable

toReturn

public void toReturn(T returnValue)
Description copied from interface: MethodStubStrategy
Stubs the method to return the specified returnValue.

Specified by:
toReturn in interface MethodStubStrategy<T>
Parameters:
returnValue - The value that will be returned.


Copyright © 2007-2012. All Rights Reserved.