Testing Spring WebClient with MockWebServer
Test JSON and HTML responses with Spring WebClient and MockWebServer. Includes runnable JUnit tests for HTTP 200, HTTP 500, and content-type errors.
springboot / test / webclient↗
Practical notes on Java, Spring, testing, and software engineering, with working examples and source references.
Test JSON and HTML responses with Spring WebClient and MockWebServer. Includes runnable JUnit tests for HTTP 200, HTTP 500, and content-type errors.