Class Configuration
java.lang.Object
org.antublue.test.engine.internal.configuration.Configuration
Class to implement Configuration
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationMethod to get the singleton instanceMethod to the properties filenamegetProperty(String key) Method to get a property<T> Optional<T> getProperty(String key, Function<String, T> transformer) Method to get a Set of configuration keysgetPropertyNames(Predicate<String> predicate) Method to a set of property keys, filtered by a Predicateintsize()Method to get the number of configuration properties
-
Field Details
-
ANTUBLUE_TEST_ENGINE_CONFIGURATION_TRACE
Configuration constant- See Also:
-
-
Method Details
-
getInstance
Method to get the singleton instance- Returns:
- the singleton instance
-
getProperty
Method to get a property- Parameters:
key- key- Returns:
- an Optional
-
getProperty
-
getPropertyNames
Method to get a Set of configuration keys- Returns:
- a Set of configuration keys
-
getPropertyNames
Method to a set of property keys, filtered by a Predicate- Parameters:
predicate- predicate- Returns:
- a Set of property keys filtered by a Predicate
-
getPropertiesFilename
Method to the properties filename- Returns:
- the properties filename
-
size
public int size()Method to get the number of configuration properties- Returns:
- the number of configuration properties
-