类 ActiveProfilesUtils
java.lang.Object
cn.taketoday.test.context.support.ActiveProfilesUtils
Utility methods for working with
@ActiveProfiles and
ActiveProfilesResolvers.
Although ActiveProfilesUtils was first introduced in Infra
4.1, the initial implementations of methods in this class were based on the
existing code base in ContextLoaderUtils.
- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Michail Nikolaev
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private static final DefaultActiveProfilesResolverprivate static final cn.taketoday.logging.Logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static String[]resolveActiveProfiles(Class<?> testClass) Resolve active bean definition profiles for the suppliedClass.
-
字段详细资料
-
log
private static final cn.taketoday.logging.Logger log -
defaultActiveProfilesResolver
-
-
构造器详细资料
-
ActiveProfilesUtils
ActiveProfilesUtils()
-
-
方法详细资料
-
resolveActiveProfiles
Resolve active bean definition profiles for the suppliedClass.Note that the
inheritProfilesflag of@ActiveProfileswill be taken into consideration. Specifically, if theinheritProfilesflag is set totrue, profiles defined in the test class will be merged with those defined in superclasses.- 参数:
testClass- the class for which to resolve the active profiles (must not benull)- 返回:
- the set of active profiles for the specified class, including active
profiles from superclasses if appropriate (never
null) - 另请参阅:
-
ActiveProfilesActiveProfilesResolverProfile
-