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 Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LauncherInterceptor
private final DelegatingLauncher
private final LauncherSessionListener
private static final LauncherInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLauncherSession
(List<LauncherInterceptor> interceptors, Supplier<LauncherSessionListener> listenerSupplier, Supplier<Launcher> launcherSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this session and notify all registeredLauncherSessionListeners
.private static LauncherInterceptor
composite
(List<LauncherInterceptor> interceptors) Get theLauncher
associated with this session.(package private) LauncherSessionListener
-
Field Details
-
NOOP_INTERCEPTOR
-
interceptor
-
listener
-
launcher
-
-
Constructor Details
-
DefaultLauncherSession
DefaultLauncherSession(List<LauncherInterceptor> interceptors, Supplier<LauncherSessionListener> listenerSupplier, Supplier<Launcher> launcherSupplier)
-
-
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
-
composite
-