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 typeCallsRealOrExceptionAnswer
public static <T> org.mockito.stubbing.Answer<T> exception()
T
- answer typeThrowsMethodExceptionAnswer
Copyright © 2019 OpenDaylight. All rights reserved.