public interface MethodStubStrategy<T>
Modifier and Type | Method and Description |
---|---|
void |
andReturn(T returnValue)
Deprecated.
Since version 1.4.1, use
toReturn(Object) instead. |
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.
|
void andReturn(T returnValue)
toReturn(Object)
instead.returnValue
- The value that will be returned.void toReturn(T returnValue)
returnValue
- The value that will be returned.void toThrow(java.lang.Throwable throwable)
throwable
- the throwable