Class MoreAnswers
- java.lang.Object
-
- org.opendaylight.yangtools.testutils.mockito.MoreAnswers
-
public final class MoreAnswers extends Object
MoreAnswer
variants.- Author:
- Michael Vorburger
- See Also:
Answers
,AdditionalAnswers
-
-
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.- Type Parameters:
T
- answer type- Returns:
- An answer
- See Also:
CallsRealOrExceptionAnswer
-
exception
public static <T> org.mockito.stubbing.Answer<T> exception()
Returns Mockito Answer (default) which throws an UnstubbedMethodException.- Type Parameters:
T
- answer type- Returns:
- An answer
- See Also:
ThrowsMethodExceptionAnswer
-
-