程序包的使用
org.springframework.test.context.web
使用org.springframework.test.context.web的程序包 程序包 说明 org.springframework.test.context.junit.jupiter.web Web support for integrating the Spring TestContext Framework with the JUnit Jupiter extension model in JUnit 5.org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.test.context.junit.jupiter.web使用的org.springframework.test.context.web中的类 类 说明 WebAppConfiguration @WebAppConfiguration
is a class-level annotation that is used to declare that theApplicationContext
loaded for an integration test should be aWebApplicationContext
.org.springframework.test.context.web使用的org.springframework.test.context.web中的类 类 说明 AbstractGenericWebContextLoader Abstract, generic extension ofAbstractContextLoader
that loads aGenericWebApplicationContext
.GenericXmlWebContextLoader Concrete implementation ofAbstractGenericWebContextLoader
that loads bean definitions from XML resources.WebMergedContextConfiguration WebMergedContextConfiguration
encapsulates the merged context configuration declared on a test class and all of its superclasses via@ContextConfiguration
,@WebAppConfiguration
, and@ActiveProfiles
.