Package org.springframework.test.context.web
@NullMarked
package org.springframework.test.context.web
Web support classes for the Spring TestContext Framework.
-
ClassDescriptionAbstract, generic extension of
AbstractContextLoader
that loads aGenericWebApplicationContext
.Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from annotated classes.Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from Groovy scripts and XML configuration files.Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from XML resources.TestExecutionListener
which provides mock Servlet API support toWebApplicationContexts
loaded by the Spring TestContext Framework.@WebAppConfiguration
is an annotation that can be applied to a test class to declare that theApplicationContext
loaded for an integration test should be aWebApplicationContext
.WebDelegatingSmartContextLoader
is a concrete implementation ofAbstractDelegatingSmartContextLoader
that delegates to aGenericXmlWebContextLoader
(or aGenericGroovyXmlWebContextLoader
if Groovy is present on the classpath) and anAnnotationConfigWebContextLoader
.WebMergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses and enclosing classes via@ContextConfiguration
,@WebAppConfiguration
,@ActiveProfiles
, and@TestPropertySource
.Web-specific implementation of theTestContextBootstrapper
SPI.