Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 581 Bytes

File metadata and controls

11 lines (10 loc) · 581 Bytes

Testing

To test code that uses the WebClient, you can use a mock web server, such as the OkHttp MockWebServer. To see an example of its use, check out {spring-framework-code}/spring-webflux/src/test/java/org/springframework/web/reactive/function/client/WebClientIntegrationTests.java[WebClientIntegrationTests] in the Spring Framework test suite or the static-server sample in the OkHttp repository.