Class MethodInvocation<T>

java.lang.Object
org.junit.jupiter.engine.execution.MethodInvocation<T>
All Implemented Interfaces:
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method>

class MethodInvocation<T> extends Object implements org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method>
  • Field Details

    • method

      private final Method method
    • target

      private final Optional<Object> target
    • arguments

      private final Object[] arguments
  • Constructor Details

  • Method Details

    • getTargetClass

      public Class<?> getTargetClass()
      Specified by:
      getTargetClass in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
    • getTarget

      public Optional<Object> getTarget()
      Specified by:
      getTarget in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
    • getExecutable

      public Method getExecutable()
      Specified by:
      getExecutable in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
    • getArguments

      public List<Object> getArguments()
      Specified by:
      getArguments in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext<T>
    • proceed

      public T proceed()
      Specified by:
      proceed in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>