Class InvocationInfo
- java.lang.Object
-
- org.mockito.internal.stubbing.answers.InvocationInfo
-
- All Implemented Interfaces:
AbstractAwareMethod
public class InvocationInfo extends java.lang.Object implements AbstractAwareMethod
-
-
Field Summary
Fields Modifier and Type Field Description private InvocationOnMockinvocationprivate java.lang.reflect.Methodmethod
-
Constructor Summary
Constructors Constructor Description InvocationInfo(InvocationOnMock theInvocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.MethodgetMethod()java.lang.StringgetMethodName()booleanisAbstract()booleanisDeclaredOnInterface()private booleanisValidException(java.lang.reflect.Method method, java.lang.Throwable throwable)booleanisValidException(java.lang.Throwable throwable)private booleanisValidExceptionForClass(java.lang.Class<?> parent, java.lang.Throwable throwable)private booleanisValidExceptionForParents(java.lang.Class<?> parent, java.lang.Throwable throwable)booleanisValidReturnType(java.lang.Class<?> clazz)booleanisVoid()Returnstrueis the return type isVoidor represents the pseudo-type to the keywordvoid.java.lang.StringprintMethodReturnType()booleanreturnsPrimitive()
-
-
-
Field Detail
-
method
private final java.lang.reflect.Method method
-
invocation
private final InvocationOnMock invocation
-
-
Constructor Detail
-
InvocationInfo
public InvocationInfo(InvocationOnMock theInvocation)
-
-
Method Detail
-
isValidException
public boolean isValidException(java.lang.Throwable throwable)
-
isValidExceptionForParents
private boolean isValidExceptionForParents(java.lang.Class<?> parent, java.lang.Throwable throwable)
-
isValidExceptionForClass
private boolean isValidExceptionForClass(java.lang.Class<?> parent, java.lang.Throwable throwable)
-
isValidException
private boolean isValidException(java.lang.reflect.Method method, java.lang.Throwable throwable)
-
isValidReturnType
public boolean isValidReturnType(java.lang.Class<?> clazz)
-
isVoid
public boolean isVoid()
Returnstrueis the return type isVoidor represents the pseudo-type to the keywordvoid. E.g:void foo()orVoid bar()
-
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
-
-