Class LauncherSessionAdapter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    class LauncherSessionAdapter
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Launcher proxy which delays the most possible the initialization of the real JUnit Launcher in order to avoid stream/stdout corruption due to early logging.
    • Field Detail

      • launcherSession

        private final java.lang.AutoCloseable launcherSession
    • Constructor Detail

      • LauncherSessionAdapter

        LauncherSessionAdapter​(java.lang.AutoCloseable launcherSession,
                               org.junit.platform.launcher.Launcher launcher,
                               CancellationTokenAdapter cancellationToken)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable