Class InterceptingLauncher

java.lang.Object
org.junit.platform.launcher.core.DelegatingLauncher
org.junit.platform.launcher.core.InterceptingLauncher
All Implemented Interfaces:
Launcher

class InterceptingLauncher extends DelegatingLauncher
Since:
1.10
  • Field Details

  • Constructor Details

  • Method Details

    • discover

      public TestPlan discover(LauncherDiscoveryRequest launcherDiscoveryRequest)
      Description copied from interface: Launcher
      Discover tests and build a TestPlan according to the supplied LauncherDiscoveryRequest by querying all registered engines and collecting their results.
      Specified by:
      discover in interface Launcher
      Overrides:
      discover in class DelegatingLauncher
      Parameters:
      launcherDiscoveryRequest - the launcher discovery request; never null
      Returns:
      an unmodifiable TestPlan that contains all resolved identifiers from all registered engines
    • execute

      public void execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners)
      Description copied from interface: Launcher
      Execute a TestPlan which is built according to the supplied LauncherDiscoveryRequest by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution.

      Supplied test execution listeners are registered in addition to already registered listeners but only for the supplied launcher discovery request.

      Specified by:
      execute in interface Launcher
      Overrides:
      execute in class DelegatingLauncher
      Parameters:
      launcherDiscoveryRequest - the launcher discovery request; never null
      listeners - additional test execution listeners; never null
    • execute

      public void execute(TestPlan testPlan, TestExecutionListener... listeners)
      Description copied from interface: Launcher
      Execute the supplied TestPlan and notify registered listeners about the progress and results of the execution.

      Supplied test execution listeners are registered in addition to already registered listeners but only for the execution of the supplied test plan.

      Specified by:
      execute in interface Launcher
      Overrides:
      execute in class DelegatingLauncher
      Parameters:
      testPlan - the test plan to execute; never null
      listeners - additional test execution listeners; never null