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
<LauncherDiscoveryListener> private final Collection
<LauncherSessionListener> private final Collection
<PostDiscoveryFilter> private final Collection
<TestEngine> private final Collection
<TestExecutionListener> private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
Fields inherited from interface org.junit.platform.launcher.core.LauncherConfig
DEFAULT
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLauncherConfig
(boolean testEngineAutoRegistrationEnabled, boolean launcherSessionListenerAutoRegistrationEnabled, boolean launcherDiscoveryListenerAutoRegistrationEnabled, boolean testExecutionListenerAutoRegistrationEnabled, boolean postDiscoveryFilterAutoRegistrationEnabled, Collection<TestEngine> additionalTestEngines, Collection<LauncherSessionListener> additionalLauncherSessionListeners, Collection<LauncherDiscoveryListener> additionalLauncherDiscoveryListeners, Collection<TestExecutionListener> additionalTestExecutionListeners, Collection<PostDiscoveryFilter> additionalPostDiscoveryFilters) -
Method Summary
Modifier and TypeMethodDescriptionGet the collection of additional launcher discovery listeners that should be added to theLauncher
.Get the collection of additional launcher session listeners that should be added to theLauncher
.Get 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 launcher discovery listeners should be discovered at runtime using theServiceLoader
mechanism and automatically registered.boolean
Determine if launcher session listeners should be discovered at runtime using theServiceLoader
mechanism and automatically registered.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 -
launcherSessionListenerAutoRegistrationEnabled
private final boolean launcherSessionListenerAutoRegistrationEnabled -
launcherDiscoveryListenerAutoRegistrationEnabled
private final boolean launcherDiscoveryListenerAutoRegistrationEnabled -
testExecutionListenerAutoRegistrationEnabled
private final boolean testExecutionListenerAutoRegistrationEnabled -
postDiscoveryFilterAutoRegistrationEnabled
private final boolean postDiscoveryFilterAutoRegistrationEnabled -
additionalTestEngines
-
additionalLauncherSessionListeners
-
additionalLauncherDiscoveryListeners
-
additionalTestExecutionListeners
-
additionalPostDiscoveryFilters
-
-
Constructor Details
-
DefaultLauncherConfig
DefaultLauncherConfig(boolean testEngineAutoRegistrationEnabled, boolean launcherSessionListenerAutoRegistrationEnabled, boolean launcherDiscoveryListenerAutoRegistrationEnabled, boolean testExecutionListenerAutoRegistrationEnabled, boolean postDiscoveryFilterAutoRegistrationEnabled, Collection<TestEngine> additionalTestEngines, Collection<LauncherSessionListener> additionalLauncherSessionListeners, Collection<LauncherDiscoveryListener> additionalLauncherDiscoveryListeners, 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
-
isLauncherSessionListenerAutoRegistrationEnabled
public boolean isLauncherSessionListenerAutoRegistrationEnabled()Description copied from interface:LauncherConfig
Determine if launcher session listeners should be discovered at runtime using theServiceLoader
mechanism and automatically registered.- Specified by:
isLauncherSessionListenerAutoRegistrationEnabled
in interfaceLauncherConfig
- Returns:
true
if launcher session listeners should be automatically registered
-
isLauncherDiscoveryListenerAutoRegistrationEnabled
public boolean isLauncherDiscoveryListenerAutoRegistrationEnabled()Description copied from interface:LauncherConfig
Determine if launcher discovery listeners should be discovered at runtime using theServiceLoader
mechanism and automatically registered.- Specified by:
isLauncherDiscoveryListenerAutoRegistrationEnabled
in interfaceLauncherConfig
- Returns:
true
if launcher discovery listeners 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
-
getAdditionalLauncherSessionListeners
Description copied from interface:LauncherConfig
Get the collection of additional launcher session listeners that should be added to theLauncher
.- Specified by:
getAdditionalLauncherSessionListeners
in interfaceLauncherConfig
- Returns:
- the collection of additional launcher session listeners; never
null
but potentially empty
-
getAdditionalLauncherDiscoveryListeners
Description copied from interface:LauncherConfig
Get the collection of additional launcher discovery listeners that should be added to theLauncher
.- Specified by:
getAdditionalLauncherDiscoveryListeners
in interfaceLauncherConfig
- Returns:
- the collection of additional launcher discovery listeners; 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
-