类 InfraTestWebEnvironment

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

class InfraTestWebEnvironment extends Object implements ContextCustomizer
ContextCustomizer to track the web environment that is used in a InfraTest. The web environment is taken into account when evaluating a MergedContextConfiguration to determine if a context can be shared between tests.
作者:
Andy Wilkinson, Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • InfraTestWebEnvironment

      InfraTestWebEnvironment(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
    • equals

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

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