Testing Spring (WebTestClient/JUnit)
Write lightweight tests for controllers using WebTestClient and JUnit basics.
Intro
Goal: understand JUnit basics and how WebTestClient hits your controllers with HTTP calls in tests.
JUnit essentials
JUnit provides assertions and test methods. In Spring Boot you run tests with SpringExtension or @SpringBootTest.
All lessons in this course
- Testing Spring (WebTestClient/JUnit)
- Config & Profiles
- Packaging & Running