public class NotifiedMethodInvocationReport extends java.lang.Object implements MethodInvocationReport
| Modifier and Type | Field and Description |
|---|---|
private Invocation |
invocation |
private java.lang.Object |
returnedValue |
private java.lang.Throwable |
throwable |
| Constructor and Description |
|---|
NotifiedMethodInvocationReport(Invocation invocation,
java.lang.Object returnedValue)
Build a new
MethodInvocationReport with a return value. |
NotifiedMethodInvocationReport(Invocation invocation,
java.lang.Throwable throwable)
Build a new
MethodInvocationReport with a return value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
DescribedInvocation |
getInvocation() |
java.lang.String |
getLocationOfStubbing() |
java.lang.Object |
getReturnedValue() |
java.lang.Throwable |
getThrowable() |
int |
hashCode() |
boolean |
threwException() |
private final Invocation invocation
private final java.lang.Object returnedValue
private final java.lang.Throwable throwable
public NotifiedMethodInvocationReport(Invocation invocation, java.lang.Object returnedValue)
MethodInvocationReport with a return value.invocation - Information on the method callreturnedValue - The value returned by the method invocationpublic NotifiedMethodInvocationReport(Invocation invocation, java.lang.Throwable throwable)
MethodInvocationReport with a return value.invocation - Information on the method callthrowable - Tha throwable raised by the method invocationpublic DescribedInvocation getInvocation()
getInvocation in interface MethodInvocationReportnullpublic java.lang.Object getReturnedValue()
getReturnedValue in interface MethodInvocationReportnullpublic java.lang.Throwable getThrowable()
getThrowable in interface MethodInvocationReportnullpublic boolean threwException()
threwException in interface MethodInvocationReporttrue if an exception was raised, false otherwisepublic java.lang.String getLocationOfStubbing()
getLocationOfStubbing in interface MethodInvocationReportpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object