- All Superinterfaces:
AutoCloseable
@API(status=EXPERIMENTAL, since="1.8") public interface LauncherSession extends AutoCloseable
The
LauncherSession
API 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
Modifier and Type Method Description void
close()
Close this session and notify all registeredLauncherSessionListeners
.Launcher
getLauncher()
Get theLauncher
associated with this session.
-
Method Details
-
getLauncher
Launcher getLauncher()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.
-
close
void close()Close this session and notify all registeredLauncherSessionListeners
.- Specified by:
close
in interfaceAutoCloseable
- API Note:
- The behavior of calling this method concurrently with any call
to the
Launcher
returned bygetLauncher()
is currently undefined.
-