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 newMethodInvocationReport
with a return value.NotifiedMethodInvocationReport
(Invocation invocation, Throwable throwable) Build a newMethodInvocationReport
with a return value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The return type is deprecated, please assign the return value from this method to theDescribedInvocation
type.int
hashCode()
boolean
-
Constructor Details
-
NotifiedMethodInvocationReport
Build a newMethodInvocationReport
with a return value.- Parameters:
invocation
- Information on the method callreturnedValue
- The value returned by the method invocation
-
NotifiedMethodInvocationReport
Build a newMethodInvocationReport
with a return value.- Parameters:
invocation
- Information on the method callthrowable
- Tha throwable raised by the method invocation
-
-
Method Details
-
getInvocation
Description copied from interface:MethodInvocationReport
The return type is deprecated, please assign the return value from this method to theDescribedInvocation
type. Sorry for inconvenience but we had to movePrintableInvocation
to better place to keep the API consistency.- Specified by:
getInvocation
in interfaceMethodInvocationReport
- Returns:
- Information on the method call, never
null
-
getReturnedValue
- Specified by:
getReturnedValue
in interfaceMethodInvocationReport
- Returns:
- The resulting value of the method invocation, may be
null
-
getThrowable
- Specified by:
getThrowable
in interfaceMethodInvocationReport
- Returns:
- The throwable raised by the method invocation, maybe
null
-
threwException
public boolean threwException()- Specified by:
threwException
in interfaceMethodInvocationReport
- Returns:
true
if an exception was raised,false
otherwise
-
getLocationOfStubbing
- Specified by:
getLocationOfStubbing
in interfaceMethodInvocationReport
- Returns:
- Location of the stub invocation
-
equals
-
hashCode
public int hashCode()
-