程序包 org.springframework.test.context.web
Web support classes for the Spring TestContext Framework.
类概要 类 说明 AbstractGenericWebContextLoader Abstract, generic extension ofAbstractContextLoaderthat loads aGenericWebApplicationContext.AnnotationConfigWebContextLoader Concrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from annotated classes.GenericGroovyXmlWebContextLoader Concrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from Groovy scripts and XML configuration files.GenericXmlWebContextLoader Concrete implementation ofAbstractGenericWebContextLoaderthat loads bean definitions from XML resources.ServletTestExecutionListener TestExecutionListenerwhich provides mock Servlet API support toWebApplicationContextsloaded by the Spring TestContext Framework.WebDelegatingSmartContextLoader WebDelegatingSmartContextLoaderis a concrete implementation ofAbstractDelegatingSmartContextLoaderthat delegates to aGenericXmlWebContextLoader(or aGenericGroovyXmlWebContextLoaderif Groovy is present on the classpath) and anAnnotationConfigWebContextLoader.WebMergedContextConfiguration WebMergedContextConfigurationencapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration,@WebAppConfiguration, and@ActiveProfiles.WebTestContextBootstrapper Web-specific implementation of theTestContextBootstrapperSPI.注释类型概要 注释类型 说明 WebAppConfiguration @WebAppConfigurationis a class-level annotation that is used to declare that theApplicationContextloaded for an integration test should be aWebApplicationContext.