Package org.junit.platform.launcher.core
Class DefaultLauncherConfig
java.lang.Object
org.junit.platform.launcher.core.DefaultLauncherConfig
- All Implemented Interfaces:
LauncherConfig
Default implementation of the
LauncherConfig
API.- Since:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.launcher.core.LauncherConfig
LauncherConfig.Builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<PostDiscoveryFilter> private final Collection
<TestEngine> private final Collection
<TestExecutionListener> private final boolean
private final boolean
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLauncherConfig
(boolean testEngineAutoRegistrationEnabled, boolean testExecutionListenerAutoRegistrationEnabled, boolean postDiscoveryFilterAutoRegistrationEnabled, Collection<TestEngine> additionalTestEngines, Collection<TestExecutionListener> additionalTestExecutionListeners, Collection<PostDiscoveryFilter> additionalPostDiscoveryFilters) -
Method Summary
Modifier and TypeMethodDescriptionGet the collection of additional post discovery filters that should be added to theLauncher
.Get the collection of additional test engines that should be added to theLauncher
.Get the collection of additional test execution listeners that should be added to theLauncher
.boolean
Determine if post discovery filters should be discovered at runtime using theServiceLoader
mechanism and automatically registered.boolean
Determine if test engines should be discovered at runtime using theServiceLoader
mechanism and automatically registered.boolean
Determine if test execution listeners should be discovered at runtime using theServiceLoader
mechanism and automatically registered.
-
Field Details
-
testEngineAutoRegistrationEnabled
private final boolean testEngineAutoRegistrationEnabled -
testExecutionListenerAutoRegistrationEnabled
private final boolean testExecutionListenerAutoRegistrationEnabled -
postDiscoveryFilterAutoRegistrationEnabled
private final boolean postDiscoveryFilterAutoRegistrationEnabled -
additionalTestEngines
-
additionalTestExecutionListeners
-
additionalPostDiscoveryFilters
-
-
Constructor Details
-
DefaultLauncherConfig
DefaultLauncherConfig(boolean testEngineAutoRegistrationEnabled, boolean testExecutionListenerAutoRegistrationEnabled, boolean postDiscoveryFilterAutoRegistrationEnabled, Collection<TestEngine> additionalTestEngines, Collection<TestExecutionListener> additionalTestExecutionListeners, Collection<PostDiscoveryFilter> additionalPostDiscoveryFilters)
-
-
Method Details
-
isTestEngineAutoRegistrationEnabled
public boolean isTestEngineAutoRegistrationEnabled()Description copied from interface:LauncherConfig
Determine if test engines should be discovered at runtime using theServiceLoader
mechanism and automatically registered.- Specified by:
isTestEngineAutoRegistrationEnabled
in interfaceLauncherConfig
- Returns:
true
if test engines should be automatically registered
-
isTestExecutionListenerAutoRegistrationEnabled
public boolean isTestExecutionListenerAutoRegistrationEnabled()Description copied from interface:LauncherConfig
Determine if test execution listeners should be discovered at runtime using theServiceLoader
mechanism and automatically registered.- Specified by:
isTestExecutionListenerAutoRegistrationEnabled
in interfaceLauncherConfig
- Returns:
true
if test execution listeners should be automatically registered
-
isPostDiscoveryFilterAutoRegistrationEnabled
public boolean isPostDiscoveryFilterAutoRegistrationEnabled()Description copied from interface:LauncherConfig
Determine if post discovery filters should be discovered at runtime using theServiceLoader
mechanism and automatically registered.- Specified by:
isPostDiscoveryFilterAutoRegistrationEnabled
in interfaceLauncherConfig
- Returns:
true
if post discovery filters should be automatically registered
-
getAdditionalTestEngines
Description copied from interface:LauncherConfig
Get the collection of additional test engines that should be added to theLauncher
.- Specified by:
getAdditionalTestEngines
in interfaceLauncherConfig
- Returns:
- the collection of additional test engines; never
null
but potentially empty
-
getAdditionalTestExecutionListeners
Description copied from interface:LauncherConfig
Get the collection of additional test execution listeners that should be added to theLauncher
.- Specified by:
getAdditionalTestExecutionListeners
in interfaceLauncherConfig
- Returns:
- the collection of additional test execution listeners; never
null
but potentially empty
-
getAdditionalPostDiscoveryFilters
Description copied from interface:LauncherConfig
Get the collection of additional post discovery filters that should be added to theLauncher
.- Specified by:
getAdditionalPostDiscoveryFilters
in interfaceLauncherConfig
- Returns:
- the collection of additional post discovery filters; never
null
but potentially empty
-