Launcher API.
External clients can obtain an instance by invoking
LauncherFactory#create().
Launcher, LauncherFactory
| Modifier and Type | Field and Description |
|---|---|
| private final EngineDiscoveryOrchestrator | |
| private final EngineExecutionOrchestrator | |
| private final LauncherListenerRegistry | |
| private final NamespacedHierarchicalStore |
| Access | Constructor and Description |
|---|---|
| pack-priv | DefaultLauncher(Iterable<TestEngine>
the test engines to delegate to; never testEngines, Collection<PostDiscoveryFilter> null or
emptythe additional post discovery filters for
discovery requests; never postDiscoveryFilters, NamespacedHierarchicalStore<Namespace> sessionLevelStore)nullConstruct a new |
| Modifier and Type | Method and Description |
|---|---|
| private NamespacedHierarchicalStore | |
| public TestPlan | discover(LauncherDiscoveryRequest discoveryRequest)
Implements org. Discover tests and build a |
| private LauncherDiscoveryResult | |
| public void | execute(LauncherDiscoveryRequest discoveryRequest, TestExecutionListener... listeners)
Implements org. Execute a |
| public void | execute(TestPlan testPlan, TestExecutionListener... listeners)
Implements org. Execute the supplied |
| public void | execute(LauncherExecutionRequest launcherExecutionRequest)
Implements org. Execute tests according to the supplied |
| private void | execute(InternalTestPlan internalTestPlan, Collection<? extends TestExecutionListener> listeners, CancellationToken cancellationToken)
|
| public void | registerLauncherDiscoveryListeners(LauncherDiscoveryListener... listeners)
Implements org. Register one or more listeners for test discovery. |
| public void | registerTestExecutionListeners(TestExecutionListener... listeners)
Implements org. Register one or more listeners for test execution. |
| discoveryOrchestrator | back to summary |
|---|---|
| private final EngineDiscoveryOrchestrator discoveryOrchestrator | |
| executionOrchestrator | back to summary |
|---|---|
| private final EngineExecutionOrchestrator executionOrchestrator | |
| listenerRegistry | back to summary |
|---|---|
| private final LauncherListenerRegistry listenerRegistry | |
| sessionLevelStore | back to summary |
|---|---|
| private final NamespacedHierarchicalStore<Namespace> sessionLevelStore | |
| DefaultLauncher | back to summary |
|---|---|
| pack-priv DefaultLauncher(Iterable<TestEngine> testEngines, Collection<PostDiscoveryFilter> postDiscoveryFilters, NamespacedHierarchicalStore<Namespace> sessionLevelStore) Construct a new
| |
| createRequestLevelStore | back to summary |
|---|---|
| private NamespacedHierarchicalStore | |
| discover | back to summary |
|---|---|
| public TestPlan discover(LauncherDiscoveryRequest discoveryRequest) Implements org. Doc from org. Discover tests and build a
| |
| discover | back to summary |
|---|---|
| private LauncherDiscoveryResult discover(LauncherDiscoveryRequest discoveryRequest, LauncherPhase phase) | |
| execute | back to summary |
|---|---|
| public void execute(LauncherDiscoveryRequest discoveryRequest, TestExecutionListener... listeners) Implements org. Doc from org. Execute a Supplied test execution listeners are registered in addition to already registered listeners but only for the supplied launcher discovery request.
| |
| execute | back to summary |
|---|---|
| public void execute(TestPlan testPlan, TestExecutionListener... listeners) Implements org. Doc from org. Execute the supplied Supplied test execution listeners are registered in addition to already registered listeners but only for the execution of the supplied test plan.
| |
| execute | back to summary |
|---|---|
| public void execute(LauncherExecutionRequest launcherExecutionRequest) Implements org. Doc from org. Execute tests according to the supplied Test execution listeners supplied as part of the request are registered in addition to already registered listeners but only for the supplied execution request.
| |
| execute | back to summary |
|---|---|
| private void execute(InternalTestPlan internalTestPlan, Collection<? extends TestExecutionListener> listeners, CancellationToken cancellationToken) | |
| registerLauncherDiscoveryListeners | back to summary |
|---|---|
| public void registerLauncherDiscoveryListeners(LauncherDiscoveryListener... listeners) Implements org. Doc from org. Register one or more listeners for test discovery.
| |
| registerTestExecutionListeners | back to summary |
|---|---|
| public void registerTestExecutionListeners(TestExecutionListener... listeners) Implements org. Doc from org. Register one or more listeners for test execution.
| |