class InterceptingLauncher extends DelegatingLauncher
| Modifier and Type | Field and Description |
|---|---|
private LauncherInterceptor |
interceptor |
delegate| Constructor and Description |
|---|
InterceptingLauncher(Launcher delegate,
LauncherInterceptor interceptor) |
| Modifier and Type | Method and Description |
|---|---|
TestPlan |
discover(LauncherDiscoveryRequest launcherDiscoveryRequest)
Discover tests and build a
TestPlan according to the supplied
LauncherDiscoveryRequest by querying all registered engines and
collecting their results. |
void |
execute(LauncherDiscoveryRequest launcherDiscoveryRequest,
TestExecutionListener... listeners)
Execute a
TestPlan which is built according to the supplied
LauncherDiscoveryRequest 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 supplied
TestPlan and notify
registered listeners about
the progress and results of the execution. |
registerLauncherDiscoveryListeners, registerTestExecutionListenersprivate final LauncherInterceptor interceptor
InterceptingLauncher(Launcher delegate, LauncherInterceptor interceptor)
public TestPlan discover(LauncherDiscoveryRequest launcherDiscoveryRequest)
LauncherTestPlan according to the supplied
LauncherDiscoveryRequest by querying all registered engines and
collecting their results.discover in interface Launcherdiscover in class DelegatingLauncherlauncherDiscoveryRequest - the launcher discovery request; never
nullTestPlan that contains all resolved
identifiers from all registered enginespublic void execute(LauncherDiscoveryRequest launcherDiscoveryRequest, TestExecutionListener... listeners)
LauncherTestPlan which is built according to the supplied
LauncherDiscoveryRequest 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 in interface Launcherexecute in class DelegatingLauncherlauncherDiscoveryRequest - the launcher discovery request; never nulllisteners - additional test execution listeners; never nullpublic void execute(TestPlan testPlan, TestExecutionListener... listeners)
LauncherTestPlan 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.
execute in interface Launcherexecute in class DelegatingLaunchertestPlan - the test plan to execute; never nulllisteners - additional test execution listeners; never null