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

pack-priv Class SessionPerRequestLauncher

extends Object
implements Launcher
Class Inheritance
All Implemented Interfaces
org.junit.platform.launcher.Launcher
Imports
java.util.List, java.util.function.Function, .Supplier, org.junit.platform.engine.support.store.Namespace, .NamespacedHierarchicalStore, org.junit.platform.launcher.Launcher, .LauncherDiscoveryListener, .LauncherDiscoveryRequest, .LauncherExecutionRequest, .LauncherInterceptor, .LauncherSession, .LauncherSessionListener, .TestExecutionListener, .TestPlan

Since
1.8

Field Summary

Modifier and TypeField and Description
private final Supplier<List<LauncherInterceptor>>
private final Function<NamespacedHierarchicalStore<Namespace>, Launcher>
private final LauncherListenerRegistry
private final Supplier<LauncherSessionListener>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

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)

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)

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)

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.

public void
public void
registerTestExecutionListeners(TestExecutionListener... listeners)

Implements org.junit.platform.launcher.Launcher.registerTestExecutionListeners.

Register one or more listeners for test execution.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

interceptorFactoryback to summary
private final Supplier<List<LauncherInterceptor>> interceptorFactory
launcherFactoryback to summary
private final Function<NamespacedHierarchicalStore<Namespace>, Launcher> launcherFactory
listenerRegistryback to summary
private final LauncherListenerRegistry listenerRegistry
sessionListenerSupplierback to summary
private final Supplier<LauncherSessionListener> sessionListenerSupplier

Constructor Detail

SessionPerRequestLauncherback to summary
pack-priv SessionPerRequestLauncher(Function<NamespacedHierarchicalStore<Namespace>, Launcher> launcherFactory, Supplier<LauncherSessionListener> sessionListenerSupplier, Supplier<List<LauncherInterceptor>> interceptorFactory)

Method Detail

createSessionback to summary
private LauncherSession createSession()
discoverback to summary
public TestPlan discover(LauncherDiscoveryRequest launcherDiscoveryRequest)

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)

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)

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)

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
registerLauncherDiscoveryListenersback to summary
public void registerLauncherDiscoveryListeners(LauncherDiscoveryListener... listeners)

Implements org.junit.platform.launcher.Launcher.registerLauncherDiscoveryListeners.

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

Register one or more listeners for test discovery.

Annotations
@Override
registerTestExecutionListenersback to summary
public void registerTestExecutionListeners(TestExecutionListener... listeners)

Implements org.junit.platform.launcher.Launcher.registerTestExecutionListeners.

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

Register one or more listeners for test execution.

Annotations
@Override