类的使用
org.springframework.test.context.ContextConfigurationAttributes
使用ContextConfigurationAttributes的程序包 程序包 说明 org.springframework.test.context This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.org.springframework.test.context.support Support classes for the Spring TestContext Framework.org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.test.context中ContextConfigurationAttributes的使用
参数类型为ContextConfigurationAttributes的org.springframework.test.context中的方法 修饰符和类型 方法 说明 void
SmartContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)
Processes theContextConfigurationAttributes
for a given test class.类型变量类型为ContextConfigurationAttributes的org.springframework.test.context中的方法参数 修饰符和类型 方法 说明 ContextCustomizer
ContextCustomizerFactory. createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes)
Create aContextCustomizer
that should be used to customize aConfigurableApplicationContext
before it is refreshed.org.springframework.test.context.support中ContextConfigurationAttributes的使用
参数类型为ContextConfigurationAttributes的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 void
AbstractContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)
For backwards compatibility with theContextLoader
SPI, the default implementation simply delegates toAbstractContextLoader.processLocations(Class, String...)
, passing it thedeclaring class
andresource locations
retrieved from the suppliedconfiguration attributes
.void
AbstractDelegatingSmartContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)
Delegates to candidateSmartContextLoaders
to process the suppliedContextConfigurationAttributes
.void
AnnotationConfigContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)
Process component classes in the suppliedContextConfigurationAttributes
.类型变量类型为ContextConfigurationAttributes的org.springframework.test.context.support中的方法参数 修饰符和类型 方法 说明 protected ContextLoader
AbstractTestContextBootstrapper. resolveContextLoader(Class<?> testClass, List<ContextConfigurationAttributes> configAttributesList)
Resolve theContextLoader
class to use for the supplied list ofContextConfigurationAttributes
and then instantiate and return thatContextLoader
.protected Class<? extends ContextLoader>
AbstractTestContextBootstrapper. resolveExplicitContextLoaderClass(List<ContextConfigurationAttributes> configAttributesList)
org.springframework.test.context.web中ContextConfigurationAttributes的使用
参数类型为ContextConfigurationAttributes的org.springframework.test.context.web中的方法 修饰符和类型 方法 说明 void
AnnotationConfigWebContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)
Process annotated classes in the suppliedContextConfigurationAttributes
.