The spring-test module provides mock implementations of ServerHttpRequest, ServerHttpResponse and ServerWebExchange.
WebTestClient is based on a mock request object and response object and provides support for testing WebFlux applications without an HTTP server. You can use WebTestClient also for end-to-end integration tests.
GO TO FULL VERSION