public static class LauncherConfig.Builder extends Object
LauncherConfig
.Modifier and Type | Method and Description |
---|---|
LauncherConfig.Builder |
addTestEngines(TestEngine... engines)
Add all of the supplied
engines to the configuration. |
LauncherConfig.Builder |
addTestExecutionListeners(TestExecutionListener... listeners)
Add all of the supplied
listeners to the configuration. |
LauncherConfig |
build()
Build the
LauncherConfig that has been configured via this
builder. |
LauncherConfig.Builder |
enableTestEngineAutoRegistration(boolean enabled)
Configure the auto-registration flag for test engines.
|
LauncherConfig.Builder |
enableTestExecutionListenerAutoRegistration(boolean enabled)
Configure the auto-registration flag for test execution listeners.
|
public LauncherConfig.Builder enableTestExecutionListenerAutoRegistration(boolean enabled)
Defaults to true
.
enabled
- true
if test execution listeners should be
automatically registeredpublic LauncherConfig.Builder enableTestEngineAutoRegistration(boolean enabled)
Defaults to true
.
enabled
- true
if test engines should be automatically
registeredpublic LauncherConfig.Builder addTestEngines(TestEngine... engines)
engines
to the configuration.engines
- additional test engines to register; never null
or containing null
public LauncherConfig.Builder addTestExecutionListeners(TestExecutionListener... listeners)
listeners
to the configuration.listeners
- additional test execution listeners to register;
never null
or containing null
public LauncherConfig build()
LauncherConfig
that has been configured via this
builder.Copyright © 2022. All rights reserved.