接口的使用
org.springframework.test.annotation.ProfileValueSource
使用ProfileValueSource的程序包 程序包 说明 org.springframework.test.annotation Support classes for annotation-driven tests.org.springframework.test.annotation中ProfileValueSource的使用
实现ProfileValueSource的org.springframework.test.annotation中的类 修饰符和类型 类 说明 class
SystemProfileValueSource
Implementation ofProfileValueSource
which uses system properties as the underlying source.返回ProfileValueSource的org.springframework.test.annotation中的方法 修饰符和类型 方法 说明 static ProfileValueSource
ProfileValueUtils. retrieveProfileValueSource(Class<?> testClass)
Retrieves theProfileValueSource
type for the specifiedtest class
as configured via the@ProfileValueSourceConfiguration
annotation and instantiates a new instance of that type.返回变量类型为ProfileValueSource的类型的org.springframework.test.annotation中的方法 修饰符和类型 方法 说明 Class<? extends ProfileValueSource>
value()
The type ofProfileValueSource
to use when retrieving profile values.参数类型为ProfileValueSource的org.springframework.test.annotation中的方法 修饰符和类型 方法 说明 static boolean
ProfileValueUtils. isTestEnabledInThisEnvironment(ProfileValueSource profileValueSource, Method testMethod, Class<?> testClass)
Determine if the suppliedtestMethod
is enabled in the current environment, as specified by the@IfProfileValue
annotation, which may be declared on the test method itself or at the class level.