类的使用
cn.taketoday.test.context.ContextConfigurationAttributes
程序包
说明
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.
Web support classes for the TestContext Framework.
WebSocket support classes for the TestContext Framework.
-
cn.taketoday.framework.test.context中ContextConfigurationAttributes的使用
修饰符和类型方法说明private voidInfraTestContextBootstrapper.addConfigAttributesClasses(ContextConfigurationAttributes configAttributes, Class<?>[] classes) voidInfraApplicationContextLoader.processContextConfiguration(ContextConfigurationAttributes configAttributes) 修饰符和类型方法说明ImportsContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) protected ContextLoaderInfraTestContextBootstrapper.resolveContextLoader(Class<?> testClass, List<ContextConfigurationAttributes> configAttributesList) -
cn.taketoday.framework.test.context.filter中ContextConfigurationAttributes的使用
修饰符和类型方法说明ExcludeFilterContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.json中ContextConfigurationAttributes的使用
修饰符和类型方法说明DuplicateJsonObjectContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.mock.mockito中ContextConfigurationAttributes的使用
修饰符和类型方法说明MockitoContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.web.client中ContextConfigurationAttributes的使用
修饰符和类型方法说明TestRestTemplateContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.framework.test.web.reactive.server中ContextConfigurationAttributes的使用
修饰符和类型方法说明WebTestClientContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) -
cn.taketoday.test.context中ContextConfigurationAttributes的使用
修饰符和类型方法说明voidSmartContextLoader.processContextConfiguration(ContextConfigurationAttributes configAttributes) Process theContextConfigurationAttributesfor a given test class.类型变量类型为ContextConfigurationAttributes的cn.taketoday.test.context中的方法参数修饰符和类型方法说明ContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) Create aContextCustomizerthat should be used to customize aConfigurableApplicationContextbefore it is refreshed. -
cn.taketoday.test.context.support中ContextConfigurationAttributes的使用
修饰符和类型方法说明(专用程序包) static Map<String,List<ContextConfigurationAttributes>> ContextLoaderUtils.buildContextHierarchyMap(Class<?> testClass) Build a context hierarchy map for the supplied test class and its superclasses, taking into account context hierarchies declared via@ContextHierarchyand@ContextConfiguration.(专用程序包) static List<ContextConfigurationAttributes>ContextLoaderUtils.resolveContextConfigurationAttributes(Class<?> testClass) Resolve the list of context configuration attributes for the supplied test class and its superclasses.(专用程序包) static List<List<ContextConfigurationAttributes>>ContextLoaderUtils.resolveContextHierarchyAttributes(Class<?> testClass) Resolve the list of lists of context configuration attributes for the supplied test class and its superclasses, taking into account context hierarchies declared via@ContextHierarchyand@ContextConfiguration.修饰符和类型方法说明private static voidAbstractDelegatingSmartContextLoader.delegateProcessing(SmartContextLoader loader, ContextConfigurationAttributes configAttributes) voidAbstractContextLoader.processContextConfiguration(ContextConfigurationAttributes configAttributes) The default implementation processes locations analogous toAbstractContextLoader.processLocations(Class, String...), using thedeclaring classas the test class and theresource locationsretrieved from the suppliedconfiguration attributesas the locations to process.voidAbstractDelegatingSmartContextLoader.processContextConfiguration(ContextConfigurationAttributes configAttributes) Delegates to candidateSmartContextLoadersto process the suppliedContextConfigurationAttributes.voidAnnotationConfigContextLoader.processContextConfiguration(ContextConfigurationAttributes configAttributes) Process component classes in the suppliedContextConfigurationAttributes.修饰符和类型方法说明private MergedContextConfigurationAbstractTestContextBootstrapper.buildMergedContextConfiguration(Class<?> testClass, List<ContextConfigurationAttributes> configAttributesList, MergedContextConfiguration parentConfig, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, boolean requireLocationsClassesOrInitializers) Build themerged context configurationfor the suppliedtestClass, context configuration attributes, and parent context configuration.private static voidContextLoaderUtils.convertContextConfigToConfigAttributesAndAddToList(ContextConfiguration contextConfiguration, Class<?> declaringClass, List<ContextConfigurationAttributes> attributesList) Convenience method for creating aContextConfigurationAttributesinstance from the suppliedContextConfigurationannotation and declaring class and then adding the attributes to the supplied list.DynamicPropertiesContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) private Set<ContextCustomizer>AbstractTestContextBootstrapper.getContextCustomizers(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes) protected ContextLoaderAbstractTestContextBootstrapper.resolveContextLoader(Class<?> testClass, List<ContextConfigurationAttributes> configAttributesList) Resolve theContextLoaderclass to use for the supplied list ofContextConfigurationAttributesand then instantiate and return thatContextLoader.protected Class<? extends ContextLoader>AbstractTestContextBootstrapper.resolveExplicitContextLoaderClass(List<ContextConfigurationAttributes> configAttributesList) ApplicationContextInitializerUtils.resolveInitializerClasses(List<ContextConfigurationAttributes> configAttributesList) Resolve the set of mergedApplicationContextInitializerclasses for the supplied list ofContextConfigurationAttributes. -
cn.taketoday.test.context.web中ContextConfigurationAttributes的使用
修饰符和类型方法说明voidAnnotationConfigWebContextLoader.processContextConfiguration(ContextConfigurationAttributes configAttributes) Process annotated classes in the suppliedContextConfigurationAttributes. -
cn.taketoday.test.context.web.socket中ContextConfigurationAttributes的使用
修饰符和类型方法说明MockServerContainerContextCustomizerFactory.createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes)