public final class Result extends Object implements IAnswer<Object>, Serializable
Modifier and Type | Method and Description |
---|---|
Object |
answer()
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 |
shouldFillInStackTrace() |
String |
toString() |
public Object answer() throws Throwable
IAnswer
EasyMock.getCurrentArgument(int)
or EasyMock.getCurrentArguments()
.
The former method is preferred since it will infer the argument type.public boolean shouldFillInStackTrace()
Copyright © 2001–2022 EasyMock contributors. All rights reserved.