Package org.junit.platform.launcher
Interface LauncherSession
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
DefaultLauncherSession
@API(status=STABLE, since="1.10") public interface LauncherSession extends java.lang.AutoCloseableTheLauncherSessionAPI 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close this session and notify all registeredLauncherSessionListeners.LaunchergetLauncher()Get theLauncherassociated with this session.
-
-
-
Method Detail
-
getLauncher
Launcher getLauncher()
Get theLauncherassociated with this session.Any call to the launcher returned by this method after the session has been closed will throw an exception.
-
close
void close()
Close this session and notify all registeredLauncherSessionListeners.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-