Class DefaultExecutableInvoker

java.lang.Object
org.junit.jupiter.engine.execution.DefaultExecutableInvoker
All Implemented Interfaces:
ExecutableInvoker

@API(status=INTERNAL, since="5.9") public class DefaultExecutableInvoker extends Object implements ExecutableInvoker
Since:
5.9
  • Constructor Details

  • Method Details

    • invoke

      public <T> T invoke(Constructor<T> constructor, Object outerInstance)
      Description copied from interface: ExecutableInvoker
      Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.

      Use this method when invoking the constructor for an inner class.

      Specified by:
      invoke in interface ExecutableInvoker
      Parameters:
      constructor - the constructor to invoke and resolve parameters for
      outerInstance - the outer instance to supply as the first argument to the constructor; must be null for top-level classes or static nested classes
    • invoke

      public Object invoke(Method method, Object target)
      Description copied from interface: ExecutableInvoker
      Invoke the supplied method with dynamic parameter resolution.
      Specified by:
      invoke in interface ExecutableInvoker
      Parameters:
      method - the method to invoke and resolve parameters for
      target - the target on which the executable will be invoked; can be null for static methods