LauncherConfig defines the configuration API for creating
Launcher instances via the LauncherFactory.
LauncherConfig launcherConfig = LauncherConfig.builder() .enableTestEngineAutoRegistration(false) .enableTestExecutionListenerAutoRegistration(false) .addTestEngines(new CustomTestEngine()) .addTestExecutionListeners(new CustomTestExecutionListener()) .build(); Launcher launcher = LauncherFactory.create(launcherConfig); LauncherDiscoveryRequest discoveryRequest = ... launcher.execute(discoveryRequest);
builder(), Launcher, LauncherFactory
| Modifier and Type | Class and Description |
|---|---|
| public static class | LauncherConfig.
Builder API for |
| Modifier and Type | Field and Description |
|---|---|
| public static final LauncherConfig | DEFAULT
The default |
| Modifier and Type | Method and Description |
|---|---|
| public static LauncherConfig. | |
| public Collection | Returns: the collection of additional launcher discovery listeners; nevernull but potentially emptyGet the collection of additional launcher discovery listeners that should
be added to the |
| public Collection | Returns: the collection of additional launcher session listeners; nevernull but potentially emptyGet the collection of additional launcher session listeners that should
be added to the |
| public Collection | Returns: the collection of additional post discovery filters; nevernull but potentially emptyGet the collection of additional post discovery filters that should be
added to the |
| public Collection | Returns: the collection of additional test engines; nevernull but
potentially emptyGet the collection of additional test engines that should be added to
the |
| public Collection | Returns: the collection of additional test execution listeners; nevernull but potentially emptyGet the collection of additional test execution listeners that should be
added to the |
| public boolean | Returns: true if launcher discovery listeners should be
automatically registeredDetermine if launcher discovery listeners should be discovered at runtime
using the |
| public boolean | Returns: true if launcher session listeners should be
automatically registeredDetermine if launcher session listeners should be discovered at runtime
using the |
| public boolean | Returns: true if post discovery filters should be automatically
registeredDetermine if post discovery filters should be discovered at runtime
using the |
| public boolean | Returns: true if test engines should be automatically registeredDetermine if test engines should be discovered at runtime using the
|
| public boolean | Returns: true if test execution listeners should be automatically
registeredDetermine if test execution listeners should be discovered at runtime
using the |
| DEFAULT | back to summary |
|---|---|
| public static final LauncherConfig DEFAULT The default | |
| builder | back to summary |
|---|---|
| public static LauncherConfig. Create a new
| |
| getAdditionalLauncherDiscoveryListeners | back to summary |
|---|---|
| public Collection Get the collection of additional launcher discovery listeners that should
be added to the
| |
| getAdditionalLauncherSessionListeners | back to summary |
|---|---|
| public Collection Get the collection of additional launcher session listeners that should
be added to the
| |
| getAdditionalPostDiscoveryFilters | back to summary |
|---|---|
| public Collection Get the collection of additional post discovery filters that should be
added to the
| |
| getAdditionalTestEngines | back to summary |
|---|---|
| public Collection Get the collection of additional test engines that should be added to
the
| |
| getAdditionalTestExecutionListeners | back to summary |
|---|---|
| public Collection Get the collection of additional test execution listeners that should be
added to the
| |
| isLauncherDiscoveryListenerAutoRegistrationEnabled | back to summary |
|---|---|
| public boolean isLauncherDiscoveryListenerAutoRegistrationEnabled() Determine if launcher discovery listeners should be discovered at runtime
using the | |
| isLauncherSessionListenerAutoRegistrationEnabled | back to summary |
|---|---|
| public boolean isLauncherSessionListenerAutoRegistrationEnabled() Determine if launcher session listeners should be discovered at runtime
using the | |
| isPostDiscoveryFilterAutoRegistrationEnabled | back to summary |
|---|---|
| public boolean isPostDiscoveryFilterAutoRegistrationEnabled() Determine if post discovery filters should be discovered at runtime
using the | |
| isTestEngineAutoRegistrationEnabled | back to summary |
|---|---|
| public boolean isTestEngineAutoRegistrationEnabled() Determine if test engines should be discovered at runtime using the
| |
| isTestExecutionListenerAutoRegistrationEnabled | back to summary |
|---|---|
| public boolean isTestExecutionListenerAutoRegistrationEnabled() Determine if test execution listeners should be discovered at runtime
using the
| |
LauncherConfig.
| Modifier and Type | Field and Description |
|---|---|
| private final Collection | |
| private boolean | |
| private final Collection | |
| private final Collection | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final Collection | |
| private final Collection | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LauncherConfig. | Returns: this builder for method chainingadditional launcher discovery listeners to register;
never listeners)null or containing nullAdd all of the supplied launcher discovery listeners to the configuration. |
| public LauncherConfig. | Returns: this builder for method chainingadditional launcher session listeners to register;
never listeners)null or containing nullAdd all of the supplied launcher session listeners to the configuration. |
| public LauncherConfig. | Returns: this builder for method chainingadditional post discovery filters to register;
never filters)null or containing nullAdd all of the supplied |
| public LauncherConfig. | Returns: this builder for method chainingadditional test engines to register; never engines)null
or containing nullAdd all of the supplied test engines to the configuration. |
| public LauncherConfig. | Returns: this builder for method chainingadditional test execution listeners to register;
never listeners)null or containing nullAdd all of the supplied test execution listeners to the configuration. |
| public LauncherConfig | |
| public LauncherConfig. | Returns: this builder for method chainingtrue if launcher discovery listeners should be
automatically registeredConfigure the auto-registration flag for launcher discovery listeners. |
| public LauncherConfig. | Returns: this builder for method chainingtrue if launcher session listeners should be
automatically registeredConfigure the auto-registration flag for launcher session listeners. |
| public LauncherConfig. | Returns: this builder for method chainingtrue if post discovery filters should be automatically
registeredConfigure the auto-registration flag for post discovery filters. |
| public LauncherConfig. | Returns: this builder for method chainingtrue if test engines should be automatically
registeredConfigure the auto-registration flag for test engines. |
| public LauncherConfig. | Returns: this builder for method chainingtrue if test execution listeners should be
automatically registeredConfigure the auto-registration flag for test execution listeners. |
| discoveryListeners | back to summary |
|---|---|
| private final Collection<LauncherDiscoveryListener> discoveryListeners | |
| engineAutoRegistrationEnabled | back to summary |
|---|---|
| private boolean engineAutoRegistrationEnabled | |
| engines | back to summary |
|---|---|
| private final Collection<TestEngine> engines | |
| executionListeners | back to summary |
|---|---|
| private final Collection<TestExecutionListener> executionListeners | |
| launcherDiscoveryListenerAutoRegistrationEnabled | back to summary |
|---|---|
| private boolean launcherDiscoveryListenerAutoRegistrationEnabled | |
| launcherSessionListenerAutoRegistrationEnabled | back to summary |
|---|---|
| private boolean launcherSessionListenerAutoRegistrationEnabled | |
| postDiscoveryFilterAutoRegistrationEnabled | back to summary |
|---|---|
| private boolean postDiscoveryFilterAutoRegistrationEnabled | |
| postDiscoveryFilters | back to summary |
|---|---|
| private final Collection<PostDiscoveryFilter> postDiscoveryFilters | |
| sessionListeners | back to summary |
|---|---|
| private final Collection<LauncherSessionListener> sessionListeners | |
| testExecutionListenerAutoRegistrationEnabled | back to summary |
|---|---|
| private boolean testExecutionListenerAutoRegistrationEnabled | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| addLauncherDiscoveryListeners | back to summary |
|---|---|
| public LauncherConfig. Add all of the supplied launcher discovery listeners to the configuration.
| |
| addLauncherSessionListeners | back to summary |
|---|---|
| public LauncherConfig. Add all of the supplied launcher session listeners to the configuration.
| |
| addPostDiscoveryFilters | back to summary |
|---|---|
| public LauncherConfig. Add all of the supplied
| |
| addTestEngines | back to summary |
|---|---|
| public LauncherConfig. Add all of the supplied test engines to the configuration.
| |
| addTestExecutionListeners | back to summary |
|---|---|
| public LauncherConfig. Add all of the supplied test execution listeners to the configuration.
| |
| build | back to summary |
|---|---|
| public LauncherConfig build() Build the | |
| enableLauncherDiscoveryListenerAutoRegistration | back to summary |
|---|---|
| public LauncherConfig. Configure the auto-registration flag for launcher discovery listeners. Defaults to
| |
| enableLauncherSessionListenerAutoRegistration | back to summary |
|---|---|
| public LauncherConfig. Configure the auto-registration flag for launcher session listeners. Defaults to
| |
| enablePostDiscoveryFilterAutoRegistration | back to summary |
|---|---|
| public LauncherConfig. Configure the auto-registration flag for post discovery filters. Defaults to
| |
| enableTestEngineAutoRegistration | back to summary |
|---|---|
| public LauncherConfig. Configure the auto-registration flag for test engines. Defaults to
| |
| enableTestExecutionListenerAutoRegistration | back to summary |
|---|---|
| public LauncherConfig. Configure the auto-registration flag for test execution listeners. Defaults to
| |