Package org.mockito.internal.handler
Class NotifiedMethodInvocationReport
java.lang.Object
org.mockito.internal.handler.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
-
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
- 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()
-