接口的使用
cn.taketoday.test.context.ContextCustomizer
使用ContextCustomizer的程序包
程序包
说明
Classes and annotations related to configuring Infra
ApplicationContext for
tests.Test support for
cn.taketoday.framework.context.TypeExcludeFilter.Support for testing JSON.
Mockito integration for tests.
Web client test utilities.
Infra support for testing server endpoints via
WebTestClient.This package contains the TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
Support classes for the TestContext Framework.
WebSocket support classes for the TestContext Framework.
-
cn.taketoday.framework.test.context中ContextCustomizer的使用
修饰符和类型类说明(专用程序包) classContextCustomizerto allow@Importannotations to be used directly on test classes.(专用程序包) classContextCustomizerto track application arguments that are used in aInfraTest.(专用程序包) classContextCustomizerto track the web environment that is used in aInfraTest.修饰符和类型字段说明private final ContextCustomizerInfraApplicationContextLoader.ContextCustomizerAdapter.contextCustomizer修饰符和类型方法说明ImportsContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) 类型变量类型为ContextCustomizer的cn.taketoday.framework.test.context中的方法参数修饰符和类型方法说明(专用程序包) static String[]InfraTestArgs.get(Set<ContextCustomizer> customizers) Return the application arguments from the given customizers.限定符构造器说明(专用程序包)ContextCustomizerAdapter(ContextCustomizer contextCustomizer, MergedContextConfiguration config) -
cn.taketoday.framework.test.context.filter中ContextCustomizer的使用
修饰符和类型类说明(专用程序包) class修饰符和类型方法说明ExcludeFilterContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.json中ContextCustomizer的使用
修饰符和类型类说明private static class修饰符和类型方法说明DuplicateJsonObjectContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.mock.mockito中ContextCustomizer的使用
修饰符和类型方法说明MockitoContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.web.client中ContextCustomizer的使用
修饰符和类型方法说明TestRestTemplateContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.web.reactive.server中ContextCustomizer的使用
修饰符和类型方法说明WebTestClientContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.test.context中ContextCustomizer的使用
类型参数类型为ContextCustomizer的cn.taketoday.test.context中的字段修饰符和类型字段说明private final Set<ContextCustomizer>MergedContextConfiguration.contextCustomizersprivate static final Set<ContextCustomizer>MergedContextConfiguration.EMPTY_CONTEXT_CUSTOMIZERS修饰符和类型方法说明ContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) Create aContextCustomizerthat should be used to customize aConfigurableApplicationContextbefore it is refreshed.返回变量类型为ContextCustomizer的类型的cn.taketoday.test.context中的方法修饰符和类型方法说明MergedContextConfiguration.getContextCustomizers()Get the mergedContextCustomizersthat will be applied when the application context is loaded.private static Set<ContextCustomizer>MergedContextConfiguration.processContextCustomizers(Set<ContextCustomizer> contextCustomizers) 类型变量类型为ContextCustomizer的cn.taketoday.test.context中的方法参数修饰符和类型方法说明private static Set<ContextCustomizer>MergedContextConfiguration.processContextCustomizers(Set<ContextCustomizer> contextCustomizers) -
cn.taketoday.test.context.support中ContextCustomizer的使用
返回变量类型为ContextCustomizer的类型的cn.taketoday.test.context.support中的方法修饰符和类型方法说明private Set<ContextCustomizer>AbstractTestContextBootstrapper.getContextCustomizers(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.test.context.web.socket中ContextCustomizer的使用
修饰符和类型类说明(专用程序包) classContextCustomizerthat instantiates a newMockServerContainerand stores it in theServletContextunder the attribute named"jakarta.websocket.server.ServerContainer".修饰符和类型方法说明MockServerContainerContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes)