MethodStubStrategyImpl
public interface MethodStubStrategy<T>
Modifier and Type | Method | 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.
|
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 © 2007–2019. All rights reserved.