Package org.mockito.listeners
Interface MethodInvocationReport
-
- All Known Implementing Classes:
NotifiedMethodInvocationReport
public interface MethodInvocationReportRepresent a method call on a mock.Contains the information on the mock, the location of the stub the return value if it returned something (maybe null), or an exception if one was thrown when the method was invoked.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribedInvocationgetInvocation()java.lang.StringgetLocationOfStubbing()java.lang.ObjectgetReturnedValue()java.lang.ThrowablegetThrowable()booleanthrewException()
-
-
-
Method Detail
-
getInvocation
DescribedInvocation getInvocation()
- Returns:
- Information on the method call, never
null
-
getReturnedValue
java.lang.Object getReturnedValue()
- Returns:
- The resulting value of the method invocation, may be
null
-
getThrowable
java.lang.Throwable getThrowable()
- Returns:
- The throwable raised by the method invocation, maybe
null
-
threwException
boolean threwException()
- Returns:
trueif an exception was raised,falseotherwise
-
getLocationOfStubbing
java.lang.String getLocationOfStubbing()
- Returns:
- Location of the stub invocation
-
-