Top Fields Constructors Methods
org.junit.platform.launcher.core

pack-priv Class InterceptingLauncher

extends DelegatingLauncher
Class Inheritance
Imports
org.jspecify.annotations.Nullable, org.junit.platform.launcher.Launcher, .LauncherDiscoveryRequest, .LauncherExecutionRequest, .LauncherInterceptor, .TestExecutionListener, .TestPlan

Since
1.10

Field Summary

Modifier and TypeField and Description
private final LauncherInterceptor
Inherited from org.junit.platform.launcher.core.DelegatingLauncher:
delegate

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public TestPlan
discover(LauncherDiscoveryRequest launcherDiscoveryRequest)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.discover.

Implements org.junit.platform.launcher.Launcher.discover.

Discover tests and build a TestPlan according to the supplied LauncherDiscoveryRequest by querying all registered engines and collecting their results.

public void
execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.execute.

Implements org.junit.platform.launcher.Launcher.execute.

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.

public void
execute(TestPlan testPlan, TestExecutionListener... listeners)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.execute.

Implements org.junit.platform.launcher.Launcher.execute.

Execute the supplied TestPlan and notify registered listeners about the progress and results of the execution.

public void
execute(LauncherExecutionRequest launcherExecutionRequest)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.execute.

Implements org.junit.platform.launcher.Launcher.execute.

Execute tests according to the supplied LauncherExecutionRequest and notify registered listeners about the progress and results of the execution.

Inherited from org.junit.platform.launcher.core.DelegatingLauncher:
registerLauncherDiscoveryListenersregisterTestExecutionListeners

Field Detail

interceptorback to summary
private final LauncherInterceptor interceptor

Constructor Detail

InterceptingLauncherback to summary
pack-priv InterceptingLauncher(Launcher delegate, LauncherInterceptor interceptor)

Method Detail

discoverback to summary
public TestPlan discover(LauncherDiscoveryRequest launcherDiscoveryRequest)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.discover.

Implements org.junit.platform.launcher.Launcher.discover.

Doc from org.junit.platform.launcher.Launcher.discover.

Discover tests and build a TestPlan according to the supplied LauncherDiscoveryRequest by querying all registered engines and collecting their results.

Annotations
@Override
executeback to summary
public void execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.execute.

Implements org.junit.platform.launcher.Launcher.execute.

Doc from org.junit.platform.launcher.Launcher.execute.

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.

Annotations
@Override
executeback to summary
public void execute(TestPlan testPlan, TestExecutionListener... listeners)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.execute.

Implements org.junit.platform.launcher.Launcher.execute.

Doc from org.junit.platform.launcher.Launcher.execute.

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.

Annotations
@Override
executeback to summary
public void execute(LauncherExecutionRequest launcherExecutionRequest)

Overrides org.junit.platform.launcher.core.DelegatingLauncher.execute.

Implements org.junit.platform.launcher.Launcher.execute.

Doc from org.junit.platform.launcher.Launcher.execute.

Execute tests according to the supplied LauncherExecutionRequest and notify registered listeners about the progress and results of the execution.

Test execution listeners supplied as part of the request are registered in addition to already registered listeners but only for the supplied execution request.

Annotations
@Override