class DefaultLauncherConfig extends java.lang.Object implements LauncherConfig
LauncherConfig API.LauncherConfig.Builder| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<TestEngine> |
additionalTestEngines |
private java.util.Collection<TestExecutionListener> |
additionalTestExecutionListeners |
private boolean |
testEngineAutoRegistrationEnabled |
private boolean |
testExecutionListenerAutoRegistrationEnabled |
| Constructor and Description |
|---|
DefaultLauncherConfig(boolean testEngineAutoRegistrationEnabled,
boolean testExecutionListenerAutoRegistrationEnabled,
java.util.Collection<TestEngine> additionalTestEngines,
java.util.Collection<TestExecutionListener> additionalTestExecutionListeners) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<TestEngine> |
getAdditionalTestEngines()
Get the collection of additional test engines that should be added to
the
Launcher. |
java.util.Collection<TestExecutionListener> |
getAdditionalTestExecutionListeners()
Get the collection of additional test execution listeners that should be
added to the
Launcher. |
boolean |
isTestEngineAutoRegistrationEnabled()
Determine if test engines should be discovered at runtime using the
ServiceLoader mechanism and
automatically registered. |
boolean |
isTestExecutionListenerAutoRegistrationEnabled()
Determine if test execution listeners should be discovered at runtime
using the
ServiceLoader mechanism and
automatically registered. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderprivate final boolean testEngineAutoRegistrationEnabled
private final boolean testExecutionListenerAutoRegistrationEnabled
private final java.util.Collection<TestEngine> additionalTestEngines
private final java.util.Collection<TestExecutionListener> additionalTestExecutionListeners
DefaultLauncherConfig(boolean testEngineAutoRegistrationEnabled,
boolean testExecutionListenerAutoRegistrationEnabled,
java.util.Collection<TestEngine> additionalTestEngines,
java.util.Collection<TestExecutionListener> additionalTestExecutionListeners)
public boolean isTestEngineAutoRegistrationEnabled()
LauncherConfigServiceLoader mechanism and
automatically registered.isTestEngineAutoRegistrationEnabled in interface LauncherConfigtrue if test engines should be automatically registeredpublic boolean isTestExecutionListenerAutoRegistrationEnabled()
LauncherConfigServiceLoader mechanism and
automatically registered.isTestExecutionListenerAutoRegistrationEnabled in interface LauncherConfigtrue if test execution listeners should be automatically
registeredpublic java.util.Collection<TestEngine> getAdditionalTestEngines()
LauncherConfigLauncher.getAdditionalTestEngines in interface LauncherConfignull but
potentially emptypublic java.util.Collection<TestExecutionListener> getAdditionalTestExecutionListeners()
LauncherConfigLauncher.getAdditionalTestExecutionListeners in interface LauncherConfignull but potentially empty