接口的使用
cn.taketoday.test.annotation.ProfileValueSource
使用ProfileValueSource的程序包
-
cn.taketoday.test.annotation中ProfileValueSource的使用
修饰符和类型类说明final classImplementation ofProfileValueSourcewhich uses system properties as the underlying source.修饰符和类型方法说明static ProfileValueSourceProfileValueUtils.retrieveProfileValueSource(Class<?> testClass) Retrieves theProfileValueSourcetype for the specifiedtest classas configured via the@ProfileValueSourceConfigurationannotation and instantiates a new instance of that type.修饰符和类型方法说明private static booleanProfileValueUtils.isTestEnabledInThisEnvironment(ProfileValueSource profileValueSource, IfProfileValue ifProfileValue) Determine if thevalue(or one of thevalues) in the supplied@IfProfileValueannotation is enabled in the current environment.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.