Module org.junit.platform.launcher
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 LauncherInterceptorprivate final DelegatingLauncherprivate final LauncherSessionListenerprivate static final LauncherInterceptor -
Constructor Summary
ConstructorsConstructorDescriptionDefaultLauncherSession(List<LauncherInterceptor> interceptors, Supplier<LauncherSessionListener> listenerSupplier, Supplier<Launcher> launcherSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this session and notify all registeredLauncherSessionListeners.private static LauncherInterceptorcomposite(List<LauncherInterceptor> interceptors) Get theLauncherassociated 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: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
-
composite
-