Class NotifiedMethodInvocationReport

java.lang.Object
org.mockito.internal.handler.NotifiedMethodInvocationReport
All Implemented Interfaces:
MethodInvocationReport

public class NotifiedMethodInvocationReport extends Object implements MethodInvocationReport
Report on a method call
  • Field Details

    • invocation

      private final Invocation invocation
    • returnedValue

      private final Object returnedValue
    • throwable

      private final Throwable throwable
  • Constructor Details

    • NotifiedMethodInvocationReport

      public NotifiedMethodInvocationReport(Invocation invocation, Object returnedValue)
      Build a new MethodInvocationReport with a return value.
      Parameters:
      invocation - Information on the method call
      returnedValue - The value returned by the method invocation
    • NotifiedMethodInvocationReport

      public NotifiedMethodInvocationReport(Invocation invocation, Throwable throwable)
      Build a new MethodInvocationReport with a return value.
      Parameters:
      invocation - Information on the method call
      throwable - Tha throwable raised by the method invocation
  • Method Details