public final class MoreAnswers extends Object
Mockito
Answer
variants, extending the its standard
Answers
and AdditionalAnswers
. Consider using the
Partials.newPartial(Class)
short cut directly.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()
CallsRealOrExceptionAnswer
public static <T> org.mockito.stubbing.Answer<T> exception()
ThrowsMethodExceptionAnswer
Copyright © 2019 OpenDaylight. All rights reserved.