class MergedTestPropertySources
extends java.lang.Object
MergedTestPropertySources
encapsulates the merged
property sources declared on a test class and all of its superclasses
via @TestPropertySource
.TestPropertySource
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
EMPTY_STRING_ARRAY |
private java.lang.String[] |
locations |
private java.lang.String[] |
properties |
Constructor and Description |
---|
MergedTestPropertySources()
Create an empty
MergedTestPropertySources instance. |
MergedTestPropertySources(java.lang.String[] locations,
java.lang.String[] properties)
Create a
MergedTestPropertySources instance with the supplied
locations and properties . |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String[] |
getLocations()
Get the resource locations of properties files.
|
(package private) java.lang.String[] |
getProperties()
Get the properties in the form of key-value pairs.
|
private static final java.lang.String[] EMPTY_STRING_ARRAY
private final java.lang.String[] locations
private final java.lang.String[] properties
MergedTestPropertySources()
MergedTestPropertySources
instance.MergedTestPropertySources(java.lang.String[] locations, java.lang.String[] properties)
MergedTestPropertySources
instance with the supplied
locations
and properties
.locations
- the resource locations of properties files; may be
empty but never null
properties
- the properties in the form of key=value
pairs;
may be empty but never null
java.lang.String[] getLocations()
TestPropertySource.locations()
java.lang.String[] getProperties()
TestPropertySource.properties()