@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD})
public @interface TestPropertyOverride
Archaius2TestConfig to create an
Archaius2 Config instance for testing.
Property values must be specified in the form of:
@TestPropertyOverride(value={"propName=propValue", "propName2=propVal2", ... }, propertyFiles={someFile.properties})
TestPropertyOverride's may be set at the test class, parent test class, and test method levels.
Overrides specified at the test method level take precedance over properties set at class level.| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
propertyFiles
Use a file location to create properties.
|
java.lang.String[] |
value
Create properties inline.
|
public abstract java.lang.String[] value
public abstract java.lang.String[] propertyFiles