Class MoreAnswers
- java.lang.Object
-
- org.opendaylight.infrautils.testutils.mockito.MoreAnswers
-
public final class MoreAnswers extends Object
MoreMockito
Answer
variants, extending the its standardAnswers
andAdditionalAnswers
. Consider using thePartials.newPartial(Class)
short cut directly.- Author:
- Michael Vorburger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
realOrException
public static <T> org.mockito.stubbing.Answer<T> realOrException()
Returns Mockito Answer (default) which forwards method calls or throws an UnstubbedMethodException.- See Also:
CallsRealOrExceptionAnswer
-
exception
public static <T> org.mockito.stubbing.Answer<T> exception()
Returns Mockito Answer (default) which throws an UnstubbedMethodException.- See Also:
ThrowsMethodExceptionAnswer
-
-