类的使用
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中的方法 修饰符和类型 方法 说明 voidSmartContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)Processes theContextConfigurationAttributesfor a given test class.类型变量类型为ContextConfigurationAttributes的org.springframework.test.context中的方法参数 修饰符和类型 方法 说明 ContextCustomizerContextCustomizerFactory. createContextCustomizer(Class<?> testClass, List<ContextConfigurationAttributes> configAttributes)Create aContextCustomizerthat should be used to customize aConfigurableApplicationContextbefore it is refreshed.org.springframework.test.context.support中ContextConfigurationAttributes的使用
参数类型为ContextConfigurationAttributes的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 voidAbstractContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)For backwards compatibility with theContextLoaderSPI, the default implementation simply delegates toAbstractContextLoader.processLocations(Class, String...), passing it thedeclaring classandresource locationsretrieved from the suppliedconfiguration attributes.voidAbstractDelegatingSmartContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)Delegates to candidateSmartContextLoadersto process the suppliedContextConfigurationAttributes.voidAnnotationConfigContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)Process component classes in the suppliedContextConfigurationAttributes.类型变量类型为ContextConfigurationAttributes的org.springframework.test.context.support中的方法参数 修饰符和类型 方法 说明 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)org.springframework.test.context.web中ContextConfigurationAttributes的使用
参数类型为ContextConfigurationAttributes的org.springframework.test.context.web中的方法 修饰符和类型 方法 说明 voidAnnotationConfigWebContextLoader. processContextConfiguration(ContextConfigurationAttributes configAttributes)Process annotated classes in the suppliedContextConfigurationAttributes.