Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mockito.listeners
Interface MethodInvocationReport

All Known Implementing Classes:
  NotifiedMethodInvocationReport

    public interface MethodInvocationReport

Represent a method call on a mock.

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.

Method Summary
`DescribedInvocation` | `getInvocation()` The return type is deprecated, please assign the return value from this method to the `DescribedInvocation` type.
`java.lang.String` | `getLocationOfStubbing()`
`java.lang.Object` | `getReturnedValue()`
`java.lang.Throwable` | `getThrowable()`
`boolean` | `threwException()`

Method Detail

### getInvocation

    DescribedInvocation getInvocation()

  The return type is deprecated, please assign the return value from this method to the `DescribedInvocation` type. Sorry for inconvenience but we had to move `PrintableInvocation` to better place to keep the API consistency.

  Returns:
    Information on the method call, never `null`

### getReturnedValue

    java.lang.Object getReturnedValue()

  Returns:
    The resulting value of the method invocation, may be `null`

### getThrowable

    java.lang.Throwable getThrowable()

  Returns:
    The throwable raised by the method invocation, maybe `null`

### threwException

    boolean threwException()

  Returns:
    `true` if an exception was raised, `false` otherwise

### getLocationOfStubbing

    java.lang.String getLocationOfStubbing()

  Returns:
    Location of the stub invocation

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD