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.Launcher
private AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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... listeners) private org.junit.platform.launcher.Launcher
launcher()
void
registerLauncherDiscoveryListeners
(org.junit.platform.launcher.LauncherDiscoveryListener... listeners) void
registerTestExecutionListeners
(org.junit.platform.launcher.TestExecutionListener... testExecutionListeners)
-
Field Details
-
launcherSession
-
launcher
private org.junit.platform.launcher.Launcher launcher
-
-
Constructor Details
-
LazyLauncher
LazyLauncher()
-
-
Method Details
-
registerLauncherDiscoveryListeners
public void registerLauncherDiscoveryListeners(org.junit.platform.launcher.LauncherDiscoveryListener... listeners) - Specified by:
registerLauncherDiscoveryListeners
in interfaceorg.junit.platform.launcher.Launcher
-
registerTestExecutionListeners
public void registerTestExecutionListeners(org.junit.platform.launcher.TestExecutionListener... testExecutionListeners) - Specified by:
registerTestExecutionListeners
in interfaceorg.junit.platform.launcher.Launcher
-
discover
public org.junit.platform.launcher.TestPlan discover(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest) - Specified by:
discover
in interfaceorg.junit.platform.launcher.Launcher
-
execute
public void execute(org.junit.platform.launcher.LauncherDiscoveryRequest launcherDiscoveryRequest, org.junit.platform.launcher.TestExecutionListener... testExecutionListeners) - Specified by:
execute
in interfaceorg.junit.platform.launcher.Launcher
-
execute
public void execute(org.junit.platform.launcher.TestPlan testPlan, org.junit.platform.launcher.TestExecutionListener... listeners) - Specified by:
execute
in interfaceorg.junit.platform.launcher.Launcher
-
launcher
private org.junit.platform.launcher.Launcher launcher() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-