Webinar: Testing Web Applications with Spring 3.2
summary
Spring Framework 3.2 adds an integrated Spring MVC testing API that runs without a servlet container and exercises the DispatcherServlet lifecycle using MockMvc. Tests load a WebApplicationContext via @WebAppConfiguration, inject MockHttpServletRequest/Response/Session, and verify request/session-scoped beans, response status, headers and JSON with JsonPath. The framework supports ApplicationContextInitializers (initializers=), context hierarchies via @ContextHierarchy, mock RestTemplate client tests with MockRestServiceServer, standalone controller tests, Mockito-backed mocks, filter/Spring Security integration, and rich debug printing.
AI-written summary · about
chapters (16)
- 0:00Introduction and agenda
- 1:43Spring test context updates
- 3:17Web application context
- 5:56Configuration examples
- 8:59Behind the scenes: testing
- 12:04Testing web scopes
- 18:22Context initializers
- 21:49Context hierarchies
- 26:16Introduction to MockMvc
- 35:15Testing strategies
- 38:40Assertions and verification
- 44:13View layer and debugging
- 47:07Standalone and filter setup
- 50:55Shared properties and APIs
- 53:26Client-side rest testing
- 57:08Q&A and closing
related talks
44mTesting Web Apps with Spring Framework
01h 27mGet the Most out of Testing with Spring 4.2
48mTesting Spring Boot Applications Demystified
53mTesting Spring Boot Applications Demystified
01h 35mThe Quest for the Holy Integration Test
01h 26mTesting with Spring 4.x
41mIntegration Testing with Spring
45mSpring Boot Test - A look behind the curtain
