Testing

Module 5. Spring
Level 14, Lesson 4
Available

The same in Spring MVC

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.

Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION