Class BaseConfiguration
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.config.AbstractConfiguration<org.apache.commons.configuration.CompositeConfiguration>
-
- dev.aherscu.qa.testing.utils.config.BaseConfiguration
-
public class BaseConfiguration extends AbstractConfiguration<org.apache.commons.configuration.CompositeConfiguration>
Represents a configuration.- Author:
- aherscu
-
-
Field Summary
-
Fields inherited from class dev.aherscu.qa.testing.utils.config.AbstractConfiguration
CONFIGURATION_SOURCES, wrappedConfiguration
-
-
Constructor Summary
Constructors Constructor Description BaseConfiguration(org.apache.commons.configuration.Configuration... configurations)
Loads the specified configurations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Map<String,String>>
groupsOf(String prefix)
Given following properties:String
toString()
String
toString(CharSequence delimiter)
-
Methods inherited from class dev.aherscu.qa.testing.utils.config.AbstractConfiguration
addProperty, clear, clearProperty, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, defaultConfiguration, entrySet, forEach, get, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getList, getList, getLong, getLong, getLong, getOrDefault, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, resolve, setProperty, size, stringResourceFrom, subset, values
-
-
-
-
Method Detail
-
groupsOf
public Stream<Map<String,String>> groupsOf(String prefix)
Given following properties:capability1.class =ANDROID capability1.device.name =Samsung Galaxy S9 Plus WQHD capability1.platform.version=8.0 capability1.appium.version =1.13.0 capability2.class =ANDROID capability2.device.name =Samsung Galaxy S9 Plus HD capability2.platform.version=8.1 capability2.appium.version =1.13.0
callinggroupsOf("capability")
will yield two groups as following:class =ANDROID device.name =Samsung Galaxy S9 Plus WQHD platform.version=8.0 appium.version =1.13.0
class =ANDROID device.name =Samsung Galaxy S9 Plus HD platform.version=8.1 appium.version =1.13.0
- Parameters:
prefix
- the prefix of a group of properties- Returns:
- groups of properties, where each group is identified by the characters following the prefix up until first dot
-
toString
public String toString(CharSequence delimiter)
- Parameters:
delimiter
- character(s) to delimit between entries- Returns:
- string representation of all entries, where each entry is abbreviated to 127 characters.
-
-