Class LauncherConfigurationParameters

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • logger

        private static final Logger logger
      • explicitConfigParams

        private final java.util.Map<java.lang.String,​java.lang.String> explicitConfigParams
      • configParamsFromFile

        private final java.util.Properties configParamsFromFile
    • Constructor Detail

      • LauncherConfigurationParameters

        LauncherConfigurationParameters​(java.util.Map<java.lang.String,​java.lang.String> configParams)
      • LauncherConfigurationParameters

        LauncherConfigurationParameters​(java.util.Map<java.lang.String,​java.lang.String> configParams,
                                        java.lang.String configFileName)
    • Method Detail

      • fromClasspathResource

        private static java.util.Properties fromClasspathResource​(java.lang.String configFileName)
      • getBoolean

        public java.util.Optional<java.lang.Boolean> getBoolean​(java.lang.String key)
        Description copied from interface: ConfigurationParameters
        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.

        Specified by:
        getBoolean in interface ConfigurationParameters
        Parameters:
        key - the key to look up; never null or blank
        Returns:
        an Optional containing the value; never null but potentially empty
        See Also:
        ConfigurationParameters.get(String), Boolean.parseBoolean(String), System.getProperty(String), ConfigurationParameters.CONFIG_FILE_NAME
      • getProperty

        private java.lang.String getProperty​(java.lang.String key)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object