Class LazyLauncher
java.lang.Object
org.apache.maven.surefire.junitplatform.LazyLauncher
- All Implemented Interfaces:
AutoCloseable,org.junit.platform.launcher.Launcher
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
FieldsModifier and TypeFieldDescriptionprivate org.junit.platform.launcher.Launcherprivate AutoCloseable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.junit.platform.launcher.TestPlandiscover(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest) voidexecute(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners) voidexecute(org.junit.platform.launcher.TestPlan testPlan, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners) private org.junit.platform.launcher.Launcherlauncher()voidregisterLauncherDiscoveryListeners(org.junit.platform.launcher.LauncherDiscoveryListener... launcherDiscoveryListeners) voidregisterTestExecutionListeners(org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
-
Field Details
-
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:
registerTestExecutionListenersin interfaceorg.junit.platform.launcher.Launcher
-
discover
public org.junit.platform.launcher.TestPlan discover(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest) - Specified by:
discoverin interfaceorg.junit.platform.launcher.Launcher
-
execute
public void execute(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners) - Specified by:
executein interfaceorg.junit.platform.launcher.Launcher
-
execute
public void execute(org.junit.platform.launcher.TestPlan testPlan, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners) - Specified by:
executein interfaceorg.junit.platform.launcher.Launcher
-
registerLauncherDiscoveryListeners
public void registerLauncherDiscoveryListeners(org.junit.platform.launcher.LauncherDiscoveryListener... launcherDiscoveryListeners) - Specified by:
registerLauncherDiscoveryListenersin interfaceorg.junit.platform.launcher.Launcher
-
launcher
private org.junit.platform.launcher.Launcher launcher() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-