Package org.mockito.internal.listeners
Class NotifiedMethodInvocationReport
java.lang.Object
org.mockito.internal.listeners.NotifiedMethodInvocationReport
- All Implemented Interfaces:
MethodInvocationReport
Report on a method call
-
Constructor Summary
ConstructorsConstructorDescriptionNotifiedMethodInvocationReport(Invocation invocation, Object returnedValue) Build a newMethodInvocationReportwith a return value.NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable) Build a newMethodInvocationReportwith a return value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe return type is deprecated, please assign the return value from this method to theDescribedInvocationtype.inthashCode()boolean
-
Constructor Details
-
NotifiedMethodInvocationReport
Build a newMethodInvocationReportwith a return value.- Parameters:
invocation- Information on the method callreturnedValue- The value returned by the method invocation
-
NotifiedMethodInvocationReport
Build a newMethodInvocationReportwith a return value.- Parameters:
invocation- Information on the method callthrowable- Tha throwable raised by the method invocation
-
-
Method Details
-
getInvocation
Description copied from interface:MethodInvocationReportThe return type is deprecated, please assign the return value from this method to theDescribedInvocationtype. Sorry for inconvenience but we had to movePrintableInvocationto better place to keep the API consistency.- Specified by:
getInvocationin interfaceMethodInvocationReport- Returns:
- Information on the method call, never
null
-
getReturnedValue
- Specified by:
getReturnedValuein interfaceMethodInvocationReport- Returns:
- The resulting value of the method invocation, may be
null
-
getThrowable
- Specified by:
getThrowablein interfaceMethodInvocationReport- Returns:
- The throwable raised by the method invocation, maybe
null
-
threwException
public boolean threwException()- Specified by:
threwExceptionin interfaceMethodInvocationReport- Returns:
trueif an exception was raised,falseotherwise
-
getLocationOfStubbing
- Specified by:
getLocationOfStubbingin interfaceMethodInvocationReport- Returns:
- Location of the stub invocation
-
equals
-
hashCode
public int hashCode()
-