Top Description Methods
org.junit.platform.launcher

public Interface LauncherSession

extends AutoCloseable
Known Direct Implementers
org.junit.platform.launcher.core.DefaultLauncherSession
Annotations
@API
status:STABLE
since:1.10
Static Imports
org.apiguardian.api.API.Status.MAINTAINED, .API.Status.STABLE

The LauncherSession API is the main entry point for client code that wishes to repeatedly discover and execute tests using one or more test engines.
Since
1.8
See Also
Launcher, LauncherSessionListener, LauncherFactory

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.lang.AutoCloseable.close.

Close this session and notify all registered LauncherSessionListeners.

public Launcher
getLauncher()

Get the Launcher associated with this session.

public NamespacedHierarchicalStore<Namespace>
getStore()

Get the NamespacedHierarchicalStore associated with this session.

Method Detail

closeback to summary
public void close()

Redeclares java.lang.AutoCloseable.close.

Close this session and notify all registered LauncherSessionListeners.

API Note

The behavior of calling this method concurrently with any call to the Launcher returned by getLauncher() is currently undefined.

Annotations
@Override
getLauncherback to summary
public Launcher 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.

getStoreback to summary
public NamespacedHierarchicalStore<Namespace> 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
@API
status:MAINTAINED
since:1.13.3
Since
1.13
See Also
NamespacedHierarchicalStore