class LauncherConfigurationParameters extends java.lang.Object implements ConfigurationParameters
| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
configParamsFromFile |
private java.util.Map<java.lang.String,java.lang.String> |
explicitConfigParams |
private static Logger |
logger |
CONFIG_FILE_NAME| Constructor and Description |
|---|
LauncherConfigurationParameters(java.util.Map<java.lang.String,java.lang.String> configParams) |
LauncherConfigurationParameters(java.util.Map<java.lang.String,java.lang.String> configParams,
java.lang.String configFileName) |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Properties |
fromClasspathResource(java.lang.String configFileName) |
java.util.Optional<java.lang.String> |
get(java.lang.String key)
Get the configuration parameter stored under the specified
key. |
java.util.Optional<java.lang.Boolean> |
getBoolean(java.lang.String key)
Get the boolean configuration parameter stored under the specified
key. |
private java.lang.String |
getProperty(java.lang.String key) |
int |
size()
Get the number of configuration parameters stored directly in this
ConfigurationParameters. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetprivate static final Logger logger
private final java.util.Map<java.lang.String,java.lang.String> explicitConfigParams
private final java.util.Properties configParamsFromFile
LauncherConfigurationParameters(java.util.Map<java.lang.String,java.lang.String> configParams)
LauncherConfigurationParameters(java.util.Map<java.lang.String,java.lang.String> configParams,
java.lang.String configFileName)
private static java.util.Properties fromClasspathResource(java.lang.String configFileName)
public java.util.Optional<java.lang.String> get(java.lang.String key)
ConfigurationParameterskey.
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.
get in interface ConfigurationParameterskey - the key to look up; never null or blankOptional containing the value; never null
but potentially emptyConfigurationParameters.getBoolean(String),
System.getProperty(String),
ConfigurationParameters.CONFIG_FILE_NAMEpublic java.util.Optional<java.lang.Boolean> getBoolean(java.lang.String key)
ConfigurationParameterskey.
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.
getBoolean in interface ConfigurationParameterskey - the key to look up; never null or blankOptional containing the value; never null
but potentially emptyConfigurationParameters.get(String),
Boolean.parseBoolean(String),
System.getProperty(String),
ConfigurationParameters.CONFIG_FILE_NAMEpublic int size()
ConfigurationParametersConfigurationParameters.size in interface ConfigurationParametersprivate java.lang.String getProperty(java.lang.String key)
public java.lang.String toString()
toString in class java.lang.Object