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

pack-priv Class DefaultLauncherSession

extends Object
implements LauncherSession
Class Inheritance
All Implemented Interfaces
org.junit.platform.launcher.LauncherSession, java.lang.AutoCloseable
Static Imports
org.junit.platform.engine.support.store.NamespacedHierarchicalStore.CloseAction.closeAutoCloseables

Since
1.8

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final LauncherInterceptor
private final DelegatingLauncher
private final LauncherSessionListener
private static final LauncherInterceptor
private final NamespacedHierarchicalStore<Namespace>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements org.junit.platform.launcher.LauncherSession.close.

Close this session and notify all registered LauncherSessionListeners.

private static LauncherInterceptor
public Launcher
getLauncher()

Implements org.junit.platform.launcher.LauncherSession.getLauncher.

Get the Launcher associated with this session.

pack-priv LauncherSessionListener
public NamespacedHierarchicalStore<Namespace>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

interceptorback to summary
private final LauncherInterceptor interceptor
launcherback to summary
private final DelegatingLauncher launcher
listenerback to summary
private final LauncherSessionListener listener
NOOP_INTERCEPTORback to summary
private static final LauncherInterceptor NOOP_INTERCEPTOR
storeback to summary
private final NamespacedHierarchicalStore<Namespace> store

Constructor Detail

DefaultLauncherSessionback to summary
pack-priv DefaultLauncherSession(List<LauncherInterceptor> interceptors, Supplier<LauncherSessionListener> listenerSupplier, Function<NamespacedHierarchicalStore<Namespace>, Launcher> launcherFactory)

Method Detail

closeback to summary
public void close()

Implements org.junit.platform.launcher.LauncherSession.close.

Doc from org.junit.platform.launcher.LauncherSession.close.

Close this session and notify all registered LauncherSessionListeners.

Annotations
@Override
compositeback to summary
private static LauncherInterceptor composite(List<LauncherInterceptor> interceptors)
getLauncherback to summary
public Launcher getLauncher()

Implements org.junit.platform.launcher.LauncherSession.getLauncher.

Doc from org.junit.platform.launcher.LauncherSession.getLauncher.

Get the Launcher associated with this session.

Any call to the launcher returned by this method after the session has been closed will throw an exception.

Annotations
@Override
getListenerback to summary
pack-priv LauncherSessionListener getListener()
getStoreback to summary
public NamespacedHierarchicalStore<Namespace> getStore()

Implements org.junit.platform.launcher.LauncherSession.getStore.

Doc from org.junit.platform.launcher.LauncherSession.getStore.

Get the NamespacedHierarchicalStore associated with this session.

All stored values that implement AutoCloseable are notified by invoking their close() methods when this session is closed.

Any call to the store returned by this method after the session has been closed will throw an exception.

Annotations
@Override
org.junit.platform.launcher.core back to summary

private Class DefaultLauncherSession.ClosedLauncher

extends Object
implements Launcher
Class Inheritance
  • java.lang.Object
  • org.junit.platform.launcher.core.DefaultLauncherSession.ClosedLauncher
All Implemented Interfaces
org.junit.platform.launcher.Launcher

Field Summary

Modifier and TypeField and Description
pack-priv static final DefaultLauncherSession.ClosedLauncher

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
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

INSTANCEback to summary
pack-priv static final DefaultLauncherSession.ClosedLauncher INSTANCE

Constructor Detail

ClosedLauncherback to summary
private ClosedLauncher()

Method Detail

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