spring-mvc-testing
Installation
SKILL.md
Spring MVC Testing
Signals: @WebMvcTest, MockMvc, jsonPath, @AutoConfigureMockMvc, @RestController, MockMvcRequestBuilders, MockMvcResultMatchers, objectMapper
Tested With
- Spring Boot 3.2+ / Spring Boot 4.x
- Spring Framework 6.x / Spring Framework 7.x
- Spring Security 6.x / 7.x (auto-configured in
@WebMvcTest) - JUnit 5
Do NOT Use This Skill When
- Testing authentication, authorization, CSRF, JWT, or OAuth2 specifically → use
spring-security-testing - Testing reactive endpoints (
WebFlux,WebClient, SSE) → usespring-webflux-testing - Testing JPA repositories or database persistence → use
spring-jpa-testing - Testing WebSocket or STOMP messaging → use
spring-websocket-testing - Writing pure unit tests without a Spring context → use
spring-testing-fundamentals