Interface MethodStubStrategy<T>
- All Known Implementing Classes:
MethodStubStrategyImpl
public interface MethodStubStrategy<T>
Specifies the return value when stubbing a method.
-
Method Summary
-
Method Details
-
andReturn
Deprecated.Since version 1.4.1, usetoReturn(Object)
instead.Stubs the method to return the specified returnValue.- Parameters:
returnValue
- The value that will be returned.
-
toReturn
Stubs the method to return the specified returnValue.- Parameters:
returnValue
- The value that will be returned.
-
toThrow
Stubs the method to throw the specified throwable.- Parameters:
throwable
- the throwable
-
toReturn(Object)
instead.