Package org.junit.platform.launcher.core
Class DefaultLauncherSession.DelegatingLauncher
- java.lang.Object
-
- org.junit.platform.launcher.core.DefaultLauncherSession.DelegatingLauncher
-
- All Implemented Interfaces:
Launcher
- Enclosing class:
- DefaultLauncherSession
private static class DefaultLauncherSession.DelegatingLauncher extends java.lang.Object implements Launcher
-
-
Constructor Summary
Constructors Constructor Description DelegatingLauncher(Launcher delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestPlan
discover(LauncherDiscoveryRequest launcherDiscoveryRequest)
Discover tests and build aTestPlan
according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results.void
execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners)
Execute aTestPlan
which is built according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution.void
execute(TestPlan testPlan, TestExecutionListener... listeners)
Execute the suppliedTestPlan
and notify registered listeners about the progress and results of the execution.Launcher
getDelegate()
void
registerLauncherDiscoveryListeners(LauncherDiscoveryListener... listeners)
Register one or more listeners for test discovery.void
registerTestExecutionListeners(TestExecutionListener... listeners)
Register one or more listeners for test execution.void
setDelegate(Launcher delegate)
-
-
-
Field Detail
-
delegate
private Launcher delegate
-
-
Constructor Detail
-
DelegatingLauncher
DelegatingLauncher(Launcher delegate)
-
-
Method Detail
-
getDelegate
public Launcher getDelegate()
-
setDelegate
public void setDelegate(Launcher delegate)
-
registerLauncherDiscoveryListeners
public void registerLauncherDiscoveryListeners(LauncherDiscoveryListener... listeners)
Description copied from interface:Launcher
Register one or more listeners for test discovery.- Specified by:
registerLauncherDiscoveryListeners
in interfaceLauncher
- Parameters:
listeners
- the listeners to be notified of test discovery events; nevernull
or empty
-
registerTestExecutionListeners
public void registerTestExecutionListeners(TestExecutionListener... listeners)
Description copied from interface:Launcher
Register one or more listeners for test execution.- Specified by:
registerTestExecutionListeners
in interfaceLauncher
- Parameters:
listeners
- the listeners to be notified of test execution events; nevernull
or empty
-
discover
public TestPlan discover(LauncherDiscoveryRequest launcherDiscoveryRequest)
Description copied from interface:Launcher
Discover tests and build aTestPlan
according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results.- Specified by:
discover
in interfaceLauncher
- Parameters:
launcherDiscoveryRequest
- the launcher discovery request; nevernull
- Returns:
- an unmodifiable
TestPlan
that contains all resolved identifiers from all registered engines
-
execute
public void execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners)
Description copied from interface:Launcher
Execute aTestPlan
which is built according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution.Supplied test execution listeners are registered in addition to already registered listeners but only for the supplied launcher discovery request.
-
execute
public void execute(TestPlan testPlan, TestExecutionListener... listeners)
Description copied from interface:Launcher
Execute the suppliedTestPlan
and notify registered listeners about the progress and results of the execution.Supplied test execution listeners are registered in addition to already registered listeners but only for the execution of the supplied test plan.
-
-