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(Throwable throwable)
Stubs the method to throw the specified throwable.
|
@Deprecated 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(Throwable throwable)
throwable
- the throwableCopyright © 2019. All rights reserved.