Package org.easymock.internal
Class Result
java.lang.Object
org.easymock.internal.Result
- All Implemented Interfaces:
Serializable,IAnswer<Object>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate final booleanprivate final IAnswer<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswer()Is called by EasyMock to answer an expected call.static ResultcreateAnswerResult(IAnswer<?> answer) static ResultcreateDelegatingResult(Object value) static ResultcreateReturnResult(Object value) static ResultcreateThrowResult(Throwable throwable) booleantoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
value
-
shouldFillInStackTrace
private final boolean shouldFillInStackTrace
-
-
Constructor Details
-
Result
-
-
Method Details
-
createThrowResult
-
createReturnResult
-
createDelegatingResult
-
createAnswerResult
-
answer
Description copied from interface:IAnswerIs 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
-