public final class MoreAnswers extends Object
Answer variants.Answers,
AdditionalAnswers| Modifier and Type | Method and Description |
|---|---|
static <T> org.mockito.stubbing.Answer<T> |
exception()
Returns Mockito Answer (default) which throws an UnstubbedMethodException.
|
static <T> org.mockito.stubbing.Answer<T> |
realOrException()
Returns Mockito Answer (default) which forwards method calls or throws an UnstubbedMethodException.
|
public static <T> org.mockito.stubbing.Answer<T> realOrException()
T - answer typeCallsRealOrExceptionAnswerpublic static <T> org.mockito.stubbing.Answer<T> exception()
T - answer typeThrowsMethodExceptionAnswerCopyright © 2019 OpenDaylight. All rights reserved.