Current lesson | Lesson 10/20

Testing REST Controllers with Spring Boot, @WebMvcTest, and MockMvc

Complete Java Testing: JUnit 5, Mockito and Spring Boot (Practical Backend Guide) 0%
Let's start testing Spring Boot REST Controllers: I'll show you what @WebMvcTest is, how to use MockMvc to simulate HTTP calls in tests, and how to verify responses without starting the full application context.
Instructor
Up next REST Controller Testing: Error Handling and HTTP Status Codes (Part 2)