Interface LauncherSession

  • All Superinterfaces:
    java.lang.AutoCloseable

    @API(status=STABLE,
         since="1.10")
    public interface LauncherSession
    extends java.lang.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 Detail

      • getLauncher

        Launcher getLauncher()
        Get the Launcher 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 registered LauncherSessionListeners.
        Specified by:
        close in interface java.lang.AutoCloseable
      • getStore

        @API(status=MAINTAINED,
             since="1.13.3")
        org.junit.platform.engine.support.store.NamespacedHierarchicalStore<org.junit.platform.engine.support.store.Namespace> getStore()
        Get the NamespacedHierarchicalStore associated with this session.

        All stored values that implement AutoCloseable are notified by invoking their close() methods when this session is closed.

        Any call to the store returned by this method after the session has been closed will throw an exception.

        Since:
        1.13
        See Also:
        NamespacedHierarchicalStore