public abstract class TestPropertyFactory extends Object
test property definitions.
This factory picks up all loaded properties passed to it and uses a naming convention
to isolate test property defaults and related values.
So, if a property abc is required by the test, then the following needs to be
put into a properties file; the search for additional properties files is
classpath:config/defaults/*.properties:
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_INHERITANCE |
static String |
PROP_INHERITANCE |
static String |
PROP_NAME_REGEX
Property names must start with a letter and then may only contain letters, numbers or dash (-)
|
static String |
SUFFIX_DEFAULT |
| Constructor and Description |
|---|
TestPropertyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static List<TestProperty> |
getTestProperties(String inheritanceCSV,
Properties properties)
Convert Java properties into instances of
TestProperty instances. |
static Map<String,TestProperty> |
groupByName(List<TestProperty> testProperties)
Helper method to create a map of test properties keyed by their names
|
public static final String PROP_NAME_REGEX
public static final String PROP_INHERITANCE
public static final String DEFAULT_INHERITANCE
public static final String SUFFIX_DEFAULT
public static Map<String,TestProperty> groupByName(List<TestProperty> testProperties)
public static List<TestProperty> getTestProperties(String inheritanceCSV, Properties properties)
TestProperty instances.inheritanceCSV - comma-separated list of project property namespaces to inheritproperties - Java properties with values defining defaults, types, etcCopyright © 2005–2018 Alfresco Software. All rights reserved.