Package org.junit.platform.launcher.core
Class LauncherConfigurationParameters
java.lang.Object
org.junit.platform.launcher.core.LauncherConfigurationParameters
- All Implemented Interfaces:
ConfigurationParameters
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
private static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.junit.platform.commons.logging.Logger
private final List
<LauncherConfigurationParameters.ParameterProvider> Fields inherited from interface org.junit.platform.engine.ConfigurationParameters
CONFIG_FILE_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
-
Method Summary
Modifier and TypeMethodDescription(package private) static LauncherConfigurationParameters.Builder
builder()
Get the configuration parameter stored under the specifiedkey
.getBoolean
(String key) Get the boolean configuration parameter stored under the specifiedkey
.private String
getProperty
(String key) keySet()
Get the keys of all configuration parameters stored in thisConfigurationParameters
.private static Properties
loadClasspathResource
(String configFileName) int
size()
Get the number of configuration parameters stored directly in thisConfigurationParameters
.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.junit.platform.engine.ConfigurationParameters
get
-
Field Details
-
logger
private static final org.junit.platform.commons.logging.Logger logger -
providers
-
-
Constructor Details
-
LauncherConfigurationParameters
private LauncherConfigurationParameters(List<LauncherConfigurationParameters.ParameterProvider> providers)
-
-
Method Details
-
builder
-
get
Description copied from interface:ConfigurationParameters
Get the configuration parameter stored under the specifiedkey
.If no such key is present in this
ConfigurationParameters
, an attempt will be made to look up the value as a JVM system property. If no such system property exists, an attempt will be made to look up the value in the JUnit Platform properties file.- Specified by:
get
in interfaceConfigurationParameters
- Parameters:
key
- the key to look up; nevernull
or blank- Returns:
- an
Optional
containing the value; nevernull
but potentially empty - See Also:
-
getBoolean
Description copied from interface:ConfigurationParameters
Get the boolean configuration parameter stored under the specifiedkey
.If no such key is present in this
ConfigurationParameters
, an attempt will be made to look up the value as a JVM system property. If no such system property exists, an attempt will be made to look up the value in the JUnit Platform properties file.- Specified by:
getBoolean
in interfaceConfigurationParameters
- Parameters:
key
- the key to look up; nevernull
or blank- Returns:
- an
Optional
containing the value; nevernull
but potentially empty - See Also:
-
size
public int size()Description copied from interface:ConfigurationParameters
Get the number of configuration parameters stored directly in thisConfigurationParameters
.- Specified by:
size
in interfaceConfigurationParameters
-
keySet
Description copied from interface:ConfigurationParameters
Get the keys of all configuration parameters stored in thisConfigurationParameters
.- Specified by:
keySet
in interfaceConfigurationParameters
- Returns:
- the set of keys contained in this
ConfigurationParameters
-
getProperty
-
toString
-
loadClasspathResource
-