类 MergedTestPropertySources
java.lang.Object
cn.taketoday.test.context.support.MergedTestPropertySources
MergedTestPropertySources encapsulates the merged
property sources declared on a test class and all of its superclasses
via @TestPropertySource.- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final List<cn.taketoday.core.io.PropertySourceDescriptor>private static final MergedTestPropertySourcesprivate final String[] -
构造器概要
构造器构造器说明MergedTestPropertySources(List<cn.taketoday.core.io.PropertySourceDescriptor> descriptors, String[] properties) Create aMergedTestPropertySourcesinstance with the supplieddescriptorsandproperties. -
方法概要
修饰符和类型方法说明(专用程序包) static MergedTestPropertySourcesempty()Factory for an emptyMergedTestPropertySourcesinstance.booleanDetermine if the supplied object is equal to thisMergedTestPropertySourcesinstance by comparing both objects' descriptors and properties.(专用程序包) String[]Get the properties in the form of key-value pairs.(专用程序包) List<cn.taketoday.core.io.PropertySourceDescriptor>Get the descriptors for resource locations of properties files.inthashCode()Generate a unique hash code for all properties of thisMergedTestPropertySourcesinstance.toString()Provide a String representation of thisMergedTestPropertySourcesinstance.
-
字段详细资料
-
empty
-
descriptors
-
properties
-
-
构造器详细资料
-
MergedTestPropertySources
MergedTestPropertySources(List<cn.taketoday.core.io.PropertySourceDescriptor> descriptors, String[] properties) Create aMergedTestPropertySourcesinstance with the supplieddescriptorsandproperties.- 参数:
descriptors- the descriptors for resource locations of properties files; may be empty but nevernullproperties- the properties in the form ofkey=valuepairs; may be empty but nevernull
-
-
方法详细资料
-
empty
Factory for an emptyMergedTestPropertySourcesinstance. -
getPropertySourceDescriptors
List<cn.taketoday.core.io.PropertySourceDescriptor> getPropertySourceDescriptors()Get the descriptors for resource locations of properties files. -
getProperties
String[] getProperties()Get the properties in the form of key-value pairs. -
equals
Determine if the supplied object is equal to thisMergedTestPropertySourcesinstance by comparing both objects' descriptors and properties. -
hashCode
public int hashCode()Generate a unique hash code for all properties of thisMergedTestPropertySourcesinstance. -
toString
Provide a String representation of thisMergedTestPropertySourcesinstance.
-