|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MethodStubStrategy<T>
Specifies the return value when stubbing a method.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||