Package org.mockito.internal.handler
Class NotifiedMethodInvocationReport
java.lang.Object
org.mockito.internal.handler.NotifiedMethodInvocationReport
- All Implemented Interfaces:
MethodInvocationReport
Report on a method call
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Invocation
private final Object
private final Throwable
-
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
-
Field Details
-
invocation
-
returnedValue
-
throwable
-
-
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
- 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()
-