How to test aync Spring WebClient with WireMock?
Whenever I have a client in my Spring Boot application I use WireMock for integration testing. Works very well.
I now have to implement an async client for which I am using WebClient, but my typical WireMock setup does not work. It works as soon as I make my client synchronous and call block(), but I specifically need to use subscribe() for this case.
This is a shortened version of the client:
webClient.post()
.uri(url + "/buchung")
.header("Authorization",...