Top Inners Fields Constructors Methods
org.junit.platform.launcher.core

pack-priv Class LauncherConfigurationParameters

extends Object
implements ConfigurationParameters
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.ConfigurationParameters
Static Imports
java.util.stream.Collectors.joining

Since
1.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private static interface

Field Summary

Modifier and TypeField and Description
private static final Logger
private final List<LauncherConfigurationParameters.ParameterProvider>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static LauncherConfigurationParameters.Builder
private static @Nullable URL
findConfigFile(String configFileName)

public Optional<String>
get(String key)

Implements org.junit.platform.engine.ConfigurationParameters.get.

Get the configuration parameter stored under the specified key.

public Optional<Boolean>
getBoolean(String key)

Implements org.junit.platform.engine.ConfigurationParameters.getBoolean.

Get the boolean configuration parameter stored under the specified key.

private @Nullable String
public Set<String>
keySet()

Implements org.junit.platform.engine.ConfigurationParameters.keySet.

Get the keys of all configuration parameters stored in this ConfigurationParameters.

private static Properties
loadClasspathResource(String configFileName)

private static void
loadClasspathResource(URL configFileUrl, Properties props)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private static URI
toURI(URL url)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

loggerback to summary
private static final Logger logger
providersback to summary
private final List<LauncherConfigurationParameters.ParameterProvider> providers

Constructor Detail

LauncherConfigurationParametersback to summary
private LauncherConfigurationParameters(List<LauncherConfigurationParameters.ParameterProvider> providers)

Method Detail

builderback to summary
pack-priv static LauncherConfigurationParameters.Builder builder()
findConfigFileback to summary
private static @Nullable URL findConfigFile(String configFileName) throws IOException
getback to summary
public Optional<String> get(String key)

Implements org.junit.platform.engine.ConfigurationParameters.get.

Doc from org.junit.platform.engine.ConfigurationParameters.get.

Get the configuration parameter stored under the specified key.

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.

Annotations
@Override
getBooleanback to summary
public Optional<Boolean> getBoolean(String key)

Implements org.junit.platform.engine.ConfigurationParameters.getBoolean.

Doc from org.junit.platform.engine.ConfigurationParameters.getBoolean.

Get the boolean configuration parameter stored under the specified key.

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.

Annotations
@Override
getPropertyback to summary
private @Nullable String getProperty(String key)
keySetback to summary
public Set<String> keySet()

Implements org.junit.platform.engine.ConfigurationParameters.keySet.

Doc from org.junit.platform.engine.ConfigurationParameters.keySet.

Get the keys of all configuration parameters stored in this ConfigurationParameters.

Annotations
@Override
loadClasspathResourceback to summary
private static Properties loadClasspathResource(String configFileName)
loadClasspathResourceback to summary
private static void loadClasspathResource(URL configFileUrl, Properties props) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
toURIback to summary
private static URI toURI(URL url)
org.junit.platform.launcher.core back to summary

pack-priv final Class LauncherConfigurationParameters.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • org.junit.platform.launcher.core.LauncherConfigurationParameters.Builder

Field Summary

Modifier and TypeField and Description
private String
private final List<String>
private final Map<String, String>
private boolean
private @Nullable ConfigurationParameters

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv LauncherConfigurationParameters
pack-priv LauncherConfigurationParameters.Builder
configFileName(String configFileName)

pack-priv LauncherConfigurationParameters.Builder
pack-priv LauncherConfigurationParameters.Builder
enableImplicitProviders(boolean enabled)

pack-priv LauncherConfigurationParameters.Builder
pack-priv LauncherConfigurationParameters.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configFileNameback to summary
private String configFileName
configResourcesback to summary
private final List<String> configResources
explicitParametersback to summary
private final Map<String, String> explicitParameters
implicitProvidersEnabledback to summary
private boolean implicitProvidersEnabled
parentConfigurationParametersback to summary
private @Nullable ConfigurationParameters parentConfigurationParameters

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
pack-priv LauncherConfigurationParameters build()
configFileNameback to summary
pack-priv LauncherConfigurationParameters.Builder configFileName(String configFileName)
configurationResourcesback to summary
pack-priv LauncherConfigurationParameters.Builder configurationResources(List<String> configResources)
enableImplicitProvidersback to summary
pack-priv LauncherConfigurationParameters.Builder enableImplicitProviders(boolean enabled)
explicitParametersback to summary
pack-priv LauncherConfigurationParameters.Builder explicitParameters(Map<String, String> parameters)
parentConfigurationParametersback to summary
pack-priv LauncherConfigurationParameters.Builder parentConfigurationParameters(ConfigurationParameters parameters)
org.junit.platform.launcher.core back to summary

private Interface LauncherConfigurationParameters.ParameterProvider


Method Summary

Modifier and TypeMethod and Description
public static LauncherConfigurationParameters.ParameterProvider
explicit(Map<String, String> configParams)

public @Nullable String
public static LauncherConfigurationParameters.ParameterProvider
public Set<String>
public static LauncherConfigurationParameters.ParameterProvider
propertiesFile(String configFileName)

public static LauncherConfigurationParameters.ParameterProvider

Method Detail

explicitback to summary
public static LauncherConfigurationParameters.ParameterProvider explicit(Map<String, String> configParams)
getValueback to summary
public @Nullable String getValue(String key)
inheritedback to summary
public static LauncherConfigurationParameters.ParameterProvider inherited(ConfigurationParameters configParams)
keySetback to summary
public Set<String> keySet()
propertiesFileback to summary
public static LauncherConfigurationParameters.ParameterProvider propertiesFile(String configFileName)
systemPropertiesback to summary
public static LauncherConfigurationParameters.ParameterProvider systemProperties()