Class MethodStubStrategyImpl<T>
java.lang.Object
org.powermock.api.support.membermodification.strategy.impl.MethodStubStrategyImpl<T>
- All Implemented Interfaces:
MethodStubStrategy<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
method
-
-
Constructor Details
-
MethodStubStrategyImpl
-
-
Method Details
-
andReturn
Deprecated.Description copied from interface:MethodStubStrategy
Stubs the method to return the specified returnValue.- Specified by:
andReturn
in interfaceMethodStubStrategy<T>
- Parameters:
returnValue
- The value that will be returned.
-
toThrow
Description copied from interface:MethodStubStrategy
Stubs the method to throw the specified throwable.- Specified by:
toThrow
in interfaceMethodStubStrategy<T>
- Parameters:
throwable
- the throwable
-
toReturn
Description copied from interface:MethodStubStrategy
Stubs the method to return the specified returnValue.- Specified by:
toReturn
in interfaceMethodStubStrategy<T>
- Parameters:
returnValue
- The value that will be returned.
-