Package org.easymock.internal
Class Result
- java.lang.Object
-
- org.easymock.internal.Result
-
- All Implemented Interfaces:
Serializable,IAnswer<Object>
public final class Result extends Object implements IAnswer<Object>, Serializable
- Author:
- OFFIS, Tammo Freese
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectanswer()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)booleanshouldFillInStackTrace()StringtoString()
-
-
-
Method Detail
-
answer
public Object answer() throws Throwable
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.getCurrentArguments()- be careful here, using the arguments is not refactoring-safe.
-
shouldFillInStackTrace
public boolean shouldFillInStackTrace()
-
-