|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl<T>
public class MethodStubStrategyImpl<T>
| Constructor Summary | |
|---|---|
MethodStubStrategyImpl(java.lang.reflect.Method method)
|
|
| Method Summary | |
|---|---|
void |
andReturn(T returnValue)
Deprecated. |
void |
toReturn(T returnValue)
Stubs the method to return the specified returnValue. |
void |
toThrow(java.lang.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 |
|---|
public MethodStubStrategyImpl(java.lang.reflect.Method method)
| Method Detail |
|---|
@Deprecated public void andReturn(T returnValue)
MethodStubStrategy
andReturn in interface MethodStubStrategy<T>returnValue - The value that will be returned.public void toThrow(java.lang.Throwable throwable)
MethodStubStrategy
toThrow in interface MethodStubStrategy<T>throwable - the throwablepublic void toReturn(T returnValue)
MethodStubStrategy
toReturn in interface MethodStubStrategy<T>returnValue - The value that will be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||