java.lang.Object
org.opendaylight.yangtools.testutils.mockito.MoreAnswers

public final class MoreAnswers extends Object
More Answer variants.
Author:
Michael Vorburger
See Also:
  • Answers
  • AdditionalAnswers
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> org.mockito.stubbing.Answer<T>
    Returns Mockito Answer (default) which throws an UnstubbedMethodException.
    static <T> org.mockito.stubbing.Answer<T>
    Returns Mockito Answer (default) which forwards method calls or throws an UnstubbedMethodException.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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:
    • 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: