类 InfraTestArgs

java.lang.Object
cn.taketoday.framework.test.context.InfraTestArgs
所有已实现的接口:
ContextCustomizer

class InfraTestArgs extends Object implements ContextCustomizer
ContextCustomizer to track application arguments that are used in a InfraTest. The application arguments are taken into account when evaluating a MergedContextConfiguration to determine if a context can be shared between tests.
作者:
Madhura Bhave, Harry Yang
  • 字段详细资料

    • NO_ARGS

      private static final String[] NO_ARGS
    • args

      private final String[] args
  • 构造器详细资料

    • InfraTestArgs

      InfraTestArgs(Class<?> testClass)
  • 方法详细资料

    • customizeContext

      public void customizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig)
      从接口复制的说明: ContextCustomizer
      Customize the supplied ConfigurableApplicationContext after bean definitions have been loaded into the context but before the context has been refreshed.
      指定者:
      customizeContext 在接口中 ContextCustomizer
      参数:
      context - the context to customize
      mergedConfig - the merged context configuration
    • getArgs

      String[] getArgs()
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • get

      static String[] get(Set<ContextCustomizer> customizers)
      Return the application arguments from the given customizers.
      参数:
      customizers - the customizers to check
      返回:
      the application args or an empty array