Class MethodInfo
- java.lang.Object
-
- org.mockito.internal.stubbing.answers.MethodInfo
-
- All Implemented Interfaces:
AbstractAwareMethod
public class MethodInfo extends java.lang.Object implements AbstractAwareMethod
by Szczepan Faber, created at: 3/31/12
-
-
Constructor Summary
Constructors Constructor Description MethodInfo(Invocation theInvocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.MethodgetMethod()java.lang.StringgetMethodName()booleanisAbstract()booleanisDeclaredOnInterface()booleanisValidException(java.lang.Throwable throwable)booleanisValidReturnType(java.lang.Class clazz)booleanisVoid()java.lang.StringprintMethodReturnType()booleanreturnsPrimitive()
-
-
-
Constructor Detail
-
MethodInfo
public MethodInfo(Invocation theInvocation)
-
-
Method Detail
-
isValidException
public boolean isValidException(java.lang.Throwable throwable)
-
isValidReturnType
public boolean isValidReturnType(java.lang.Class clazz)
-
isVoid
public boolean isVoid()
-
printMethodReturnType
public java.lang.String printMethodReturnType()
-
getMethodName
public java.lang.String getMethodName()
-
returnsPrimitive
public boolean returnsPrimitive()
-
getMethod
public java.lang.reflect.Method getMethod()
-
isDeclaredOnInterface
public boolean isDeclaredOnInterface()
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceAbstractAwareMethod
-
-