Class InvocationInfo

java.lang.Object
org.mockito.internal.stubbing.answers.InvocationInfo
All Implemented Interfaces:
AbstractAwareMethod

public class InvocationInfo extends Object implements AbstractAwareMethod
  • Field Details

  • Constructor Details

  • Method Details

    • isValidException

      public boolean isValidException(Throwable throwable)
    • isValidExceptionForParents

      private boolean isValidExceptionForParents(Class<?> parent, Throwable throwable)
    • isValidExceptionForClass

      private boolean isValidExceptionForClass(Class<?> parent, Throwable throwable)
    • isValidException

      private boolean isValidException(Method method, Throwable throwable)
    • isValidReturnType

      public boolean isValidReturnType(Class<?> clazz)
    • isVoid

      public boolean isVoid()
      Returns true is the return type is Void or represents the pseudo-type to the keyword void. E.g: void foo() or Void bar()
    • printMethodReturnType

      public String printMethodReturnType()
    • getMethodName

      public String getMethodName()
    • returnsPrimitive

      public boolean returnsPrimitive()
    • getMethod

      public Method getMethod()
    • isDeclaredOnInterface

      public boolean isDeclaredOnInterface()
    • isAbstract

      public boolean isAbstract()
      Specified by:
      isAbstract in interface AbstractAwareMethod