Package org.junit.platform.launcher.core
Class DefaultLauncherSession
java.lang.Object
org.junit.platform.launcher.core.DefaultLauncherSession
- All Implemented Interfaces:
AutoCloseable
,LauncherSession
- Since:
- 1.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultLauncherSession.DelegatingLauncher
private final LauncherSessionListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this session and notify all registeredLauncherSessionListeners
.Get theLauncher
associated with this session.(package private) LauncherSessionListener
-
Field Details
-
launcher
-
listener
-
-
Constructor Details
-
DefaultLauncherSession
DefaultLauncherSession(Launcher launcher, LauncherSessionListener listener)
-
-
Method Details
-
getLauncher
Description copied from interface:LauncherSession
Get theLauncher
associated with this session.Any call to the launcher returned by this method after the session has been closed will throw an exception.
- Specified by:
getLauncher
in interfaceLauncherSession
-
getListener
LauncherSessionListener getListener() -
close
public void close()Description copied from interface:LauncherSession
Close this session and notify all registeredLauncherSessionListeners
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceLauncherSession
-