org.mockito.listeners
public interface MethodInvocationReport
Contains the information on the mock, the location of the stub the return value if it returned something (maybe null), or an exception if one was thrown when the method was invoked.
Modifier and Type | Method and Description |
---|---|
DescribedInvocation |
getInvocation() |
String |
getLocationOfStubbing() |
Object |
getReturnedValue() |
Throwable |
getThrowable() |
boolean |
threwException() |
DescribedInvocation getInvocation()
null
Object getReturnedValue()
null
Throwable getThrowable()
null
boolean threwException()
true
if an exception was raised, false
otherwiseString getLocationOfStubbing()