Class MethodInfo

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

public class MethodInfo extends Object implements AbstractAwareMethod
by Szczepan Faber, created at: 3/31/12
  • Constructor Details

    • MethodInfo

      public MethodInfo(Invocation theInvocation)
  • Method Details

    • isValidException

      public boolean isValidException(Throwable throwable)
    • isValidReturnType

      public boolean isValidReturnType(Class clazz)
    • isVoid

      public boolean isVoid()
    • 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