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 booleanprivate final booleanprivate 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.booleanDetermine if post discovery filters should be discovered at runtime using theServiceLoadermechanism and automatically registered.booleanDetermine if test engines should be discovered at runtime using theServiceLoadermechanism and automatically registered.booleanDetermine if test execution listeners should be discovered at runtime using theServiceLoadermechanism 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:LauncherConfigDetermine if test engines should be discovered at runtime using theServiceLoadermechanism and automatically registered.- Specified by:
isTestEngineAutoRegistrationEnabledin interfaceLauncherConfig- Returns:
trueif test engines should be automatically registered
-
isTestExecutionListenerAutoRegistrationEnabled
public boolean isTestExecutionListenerAutoRegistrationEnabled()Description copied from interface:LauncherConfigDetermine if test execution listeners should be discovered at runtime using theServiceLoadermechanism and automatically registered.- Specified by:
isTestExecutionListenerAutoRegistrationEnabledin interfaceLauncherConfig- Returns:
trueif test execution listeners should be automatically registered
-
isPostDiscoveryFilterAutoRegistrationEnabled
public boolean isPostDiscoveryFilterAutoRegistrationEnabled()Description copied from interface:LauncherConfigDetermine if post discovery filters should be discovered at runtime using theServiceLoadermechanism and automatically registered.- Specified by:
isPostDiscoveryFilterAutoRegistrationEnabledin interfaceLauncherConfig- Returns:
trueif post discovery filters should be automatically registered
-
getAdditionalTestEngines
Description copied from interface:LauncherConfigGet the collection of additional test engines that should be added to theLauncher.- Specified by:
getAdditionalTestEnginesin interfaceLauncherConfig- Returns:
- the collection of additional test engines; never
nullbut potentially empty
-
getAdditionalTestExecutionListeners
Description copied from interface:LauncherConfigGet the collection of additional test execution listeners that should be added to theLauncher.- Specified by:
getAdditionalTestExecutionListenersin interfaceLauncherConfig- Returns:
- the collection of additional test execution listeners; never
nullbut potentially empty
-
getAdditionalPostDiscoveryFilters
Description copied from interface:LauncherConfigGet the collection of additional post discovery filters that should be added to theLauncher.- Specified by:
getAdditionalPostDiscoveryFiltersin interfaceLauncherConfig- Returns:
- the collection of additional post discovery filters; never
nullbut potentially empty
-