You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are using a RestTemplate or RestClient we can easily write tests using the MockRestServiceServer and register some behavior. For more complex testing scenarios it is possible to use things like wiremock etc.
For the reactive version of the web there is no equivalent MockRestServiceServer, so when testing the WebClient we would always need something like wiremock or another library or totally mock the dependency.
It would be nice if there would be an equivalent way of of testing WebClient based code like there is for RestTemplate/RestClient.
The text was updated successfully, but these errors were encountered:
When we are using a
RestTemplate
orRestClient
we can easily write tests using theMockRestServiceServer
and register some behavior. For more complex testing scenarios it is possible to use things like wiremock etc.For the reactive version of the web there is no equivalent
MockRestServiceServer
, so when testing theWebClient
we would always need something like wiremock or another library or totally mock the dependency.It would be nice if there would be an equivalent way of of testing
WebClient
based code like there is forRestTemplate
/RestClient
.The text was updated successfully, but these errors were encountered: