类 ActiveProfilesUtils

java.lang.Object
cn.taketoday.test.context.support.ActiveProfilesUtils

abstract class ActiveProfilesUtils extends Object
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
另请参阅:
  • 字段详细资料

    • log

      private static final cn.taketoday.logging.Logger log
    • defaultActiveProfilesResolver

      private static final DefaultActiveProfilesResolver defaultActiveProfilesResolver
  • 构造器详细资料

    • ActiveProfilesUtils

      ActiveProfilesUtils()
  • 方法详细资料

    • resolveActiveProfiles

      static String[] resolveActiveProfiles(Class<?> testClass)
      Resolve active bean definition profiles for the supplied Class.

      Note that the inheritProfiles flag of @ActiveProfiles will be taken into consideration. Specifically, if the inheritProfiles flag is set to true, 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 be null)
      返回:
      the set of active profiles for the specified class, including active profiles from superclasses if appropriate (never null)
      另请参阅: