Class LazyLauncher

java.lang.Object
org.apache.maven.surefire.junitplatform.LazyLauncher
All Implemented Interfaces:
AutoCloseable, org.junit.platform.launcher.Launcher

class LazyLauncher extends Object implements org.junit.platform.launcher.Launcher, 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 Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.junit.platform.launcher.Launcher
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.junit.platform.launcher.TestPlan
    discover(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest)
     
    void
    execute(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
     
    void
    execute(org.junit.platform.launcher.TestPlan testPlan, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
     
    private org.junit.platform.launcher.Launcher
     
    void
    registerLauncherDiscoveryListeners(org.junit.platform.launcher.LauncherDiscoveryListener... launcherDiscoveryListeners)
     
    void
    registerTestExecutionListeners(org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • launcherSession

      private AutoCloseable launcherSession
    • launcher

      private org.junit.platform.launcher.Launcher launcher
  • Constructor Details

    • LazyLauncher

      LazyLauncher()
  • Method Details

    • registerTestExecutionListeners

      public void registerTestExecutionListeners(org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
      Specified by:
      registerTestExecutionListeners in interface org.junit.platform.launcher.Launcher
    • discover

      public org.junit.platform.launcher.TestPlan discover(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest)
      Specified by:
      discover in interface org.junit.platform.launcher.Launcher
    • execute

      public void execute(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
      Specified by:
      execute in interface org.junit.platform.launcher.Launcher
    • execute

      public void execute(org.junit.platform.launcher.TestPlan testPlan, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
      Specified by:
      execute in interface org.junit.platform.launcher.Launcher
    • registerLauncherDiscoveryListeners

      public void registerLauncherDiscoveryListeners(org.junit.platform.launcher.LauncherDiscoveryListener... launcherDiscoveryListeners)
      Specified by:
      registerLauncherDiscoveryListeners in interface org.junit.platform.launcher.Launcher
    • launcher

      private org.junit.platform.launcher.Launcher launcher()
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception