Class MoreAnswers

  • public final class MoreAnswers
    extends Object
    More Mockito Answer variants, extending the its standard Answers and AdditionalAnswers. Consider using the Partials.newPartial(Class) short cut directly.
    Michael Vorburger
    • 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:
      • exception

        public static <T> org.mockito.stubbing.Answer<T> exception()
        Returns Mockito Answer (default) which throws an UnstubbedMethodException.
        See Also: