public class NotifiedMethodInvocationReport extends Object implements MethodInvocationReport
Constructor and Description |
---|
NotifiedMethodInvocationReport(Invocation invocation,
Object returnedValue)
Build a new
MethodInvocationReport with a return value. |
NotifiedMethodInvocationReport(Invocation invocation,
Throwable throwable)
Build a new
MethodInvocationReport with a return value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DescribedInvocation |
getInvocation()
The return type is deprecated, please assign the return value from this method
to the
DescribedInvocation type. |
String |
getLocationOfStubbing() |
Object |
getReturnedValue() |
Throwable |
getThrowable() |
int |
hashCode() |
boolean |
threwException() |
public NotifiedMethodInvocationReport(Invocation invocation, Object returnedValue)
MethodInvocationReport
with a return value.invocation
- Information on the method callreturnedValue
- The value returned by the method invocationpublic NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable)
MethodInvocationReport
with a return value.invocation
- Information on the method callthrowable
- Tha throwable raised by the method invocationpublic DescribedInvocation getInvocation()
MethodInvocationReport
DescribedInvocation
type. Sorry for inconvenience but we had to move
PrintableInvocation
to better place to keep the API consistency.getInvocation
in interface MethodInvocationReport
null
public Object getReturnedValue()
getReturnedValue
in interface MethodInvocationReport
null
public Throwable getThrowable()
getThrowable
in interface MethodInvocationReport
null
public boolean threwException()
threwException
in interface MethodInvocationReport
true
if an exception was raised, false
otherwisepublic String getLocationOfStubbing()
getLocationOfStubbing
in interface MethodInvocationReport