Class InterceptingLauncher
java.lang.Object
org.junit.platform.launcher.core.DelegatingLauncher
org.junit.platform.launcher.core.InterceptingLauncher
- All Implemented Interfaces:
Launcher
- Since:
- 1.10
-
Field Summary
FieldsFields inherited from class DelegatingLauncher
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiscover(LauncherDiscoveryRequest launcherDiscoveryRequest) Discover tests and build aTestPlanaccording to the suppliedLauncherDiscoveryRequestby querying all registered engines and collecting their results.voidexecute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners) Execute aTestPlanwhich is built according to the suppliedLauncherDiscoveryRequestby querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution.voidexecute(TestPlan testPlan, TestExecutionListener... listeners) Execute the suppliedTestPlanand notify registered listeners about the progress and results of the execution.Methods inherited from class DelegatingLauncher
registerLauncherDiscoveryListeners, registerTestExecutionListeners
-
Field Details
-
interceptor
-
-
Constructor Details
-
InterceptingLauncher
InterceptingLauncher(Launcher delegate, LauncherInterceptor interceptor)
-
-
Method Details
-
discover
Description copied from interface:LauncherDiscover tests and build aTestPlanaccording to the suppliedLauncherDiscoveryRequestby querying all registered engines and collecting their results.- Specified by:
discoverin interfaceLauncher- Overrides:
discoverin classDelegatingLauncher- Parameters:
launcherDiscoveryRequest- the launcher discovery request; nevernull- Returns:
- an unmodifiable
TestPlanthat contains all resolved identifiers from all registered engines
-
execute
public void execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners) Description copied from interface:LauncherExecute aTestPlanwhich is built according to the suppliedLauncherDiscoveryRequestby 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.
- Specified by:
executein interfaceLauncher- Overrides:
executein classDelegatingLauncher- Parameters:
launcherDiscoveryRequest- the launcher discovery request; nevernulllisteners- additional test execution listeners; nevernull
-
execute
Description copied from interface:LauncherExecute the suppliedTestPlanand 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.
- Specified by:
executein interfaceLauncher- Overrides:
executein classDelegatingLauncher- Parameters:
testPlan- the test plan to execute; nevernulllisteners- additional test execution listeners; nevernull
-