java.lang.Object
org.easymock.internal.Result
- All Implemented Interfaces:
Serializable
,IAnswer<Object>
The result of an invocation on a mock. It can be a direct constant or the result of some computation.
- Author:
- OFFIS, Tammo Freese
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionanswer()
Is called by EasyMock to answer an expected call.static Result
createAnswerResult
(IAnswer<?> answer) static Result
createDelegatingResult
(Object value) static Result
createReturnResult
(Object value) static Result
createThrowResult
(Throwable throwable) boolean
toString()
-
Method Details
-
createThrowResult
-
createReturnResult
-
createDelegatingResult
-
createAnswerResult
-
answer
Description copied from interface:IAnswer
Is called by EasyMock to answer an expected call. The answer may be to return a value, or to throw an exception. The arguments of the call for which the answer is generated are available viaEasyMock.getCurrentArgument(int)
orEasyMock.getCurrentArguments()
. The former method is preferred since it will infer the argument type. -
shouldFillInStackTrace
public boolean shouldFillInStackTrace() -
toString
-