接口的使用
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中的类 修饰符和类型 类 说明 classSystemProfileValueSourceImplementation ofProfileValueSourcewhich uses system properties as the underlying source.返回ProfileValueSource的org.springframework.test.annotation中的方法 修饰符和类型 方法 说明 static ProfileValueSourceProfileValueUtils. retrieveProfileValueSource(Class<?> testClass)Retrieves theProfileValueSourcetype for the specifiedtest classas configured via the@ProfileValueSourceConfigurationannotation and instantiates a new instance of that type.返回变量类型为ProfileValueSource的类型的org.springframework.test.annotation中的方法 修饰符和类型 方法 说明 Class<? extends ProfileValueSource>value()The type ofProfileValueSourceto use when retrieving profile values.参数类型为ProfileValueSource的org.springframework.test.annotation中的方法 修饰符和类型 方法 说明 static booleanProfileValueUtils. isTestEnabledInThisEnvironment(ProfileValueSource profileValueSource, Method testMethod, Class<?> testClass)Determine if the suppliedtestMethodis enabled in the current environment, as specified by the@IfProfileValueannotation, which may be declared on the test method itself or at the class level.