Class Configuration

java.lang.Object
org.antublue.test.engine.Configuration

public class Configuration extends Object
Class to implement Configuration
  • Field Details

    • ANTUBLUE_TEST_ENGINE_CONFIGURATION_TRACE

      public static final String ANTUBLUE_TEST_ENGINE_CONFIGURATION_TRACE
      Configuration constant
      See Also:
  • Constructor Details

    • Configuration

      public Configuration()
      Constructor
  • Method Details

    • getInstance

      public static Configuration getInstance()
      Method to get the singleton instance
      Returns:
      the singleton instance
    • getPropertiesFilename

      public String getPropertiesFilename()
      Method to the properties filename
      Returns:
      the properties filename
    • get

      public Optional<String> get(String key)
      Method to get a configuration property
      Parameters:
      key - the key
      Returns:
      the value
    • getBoolean

      public Optional<Boolean> getBoolean(String key)
      Method to get a configuration property
      Parameters:
      key - the key
      Returns:
      the value
    • size

      public int size()
      Method to get the number of configuration properties
      Returns:
      the number of configuration properties
    • keySet

      public Set<String> keySet()
      Method to get a Set of configuration keys
      Returns:
      a Set of configuration keys