Class ReturnsSmartNulls.ThrowsSmartNullPointer

java.lang.Object
org.mockito.internal.stubbing.defaultanswers.ReturnsSmartNulls.ThrowsSmartNullPointer
All Implemented Interfaces:
Answer
Enclosing class:
ReturnsSmartNulls

private static class ReturnsSmartNulls.ThrowsSmartNullPointer extends Object implements Answer
  • Field Details

  • Constructor Details

  • Method Details

    • answer

      public Object answer(InvocationOnMock currentInvocation) throws Throwable
      Specified by:
      answer in interface Answer
      Parameters:
      currentInvocation - the invocation on the mock.
      Returns:
      the value to be returned
      Throws:
      Throwable - the throwable to be thrown
    • isMethodOf

      private static boolean isMethodOf(Class<?> clazz, Object instance, Method method)