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 classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultLauncherSession.DelegatingLauncherprivate final LauncherSessionListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this session and notify all registeredLauncherSessionListeners.Get theLauncherassociated 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:LauncherSessionGet theLauncherassociated with this session.Any call to the launcher returned by this method after the session has been closed will throw an exception.
- Specified by:
getLauncherin interfaceLauncherSession
-
getListener
LauncherSessionListener getListener() -
close
public void close()Description copied from interface:LauncherSessionClose this session and notify all registeredLauncherSessionListeners.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceLauncherSession
-