I'm currently working on a REST application and try to do that with spring boot, webflux and the functional way with kotlin. With Annotations one could write unit tests by mocking the repository and call the methods of the controller. As the controller returns a Mono of the desired object, it was easily compared and asserted.
In the functional way, my handler returns a Mono<ServerResponse>. When I debug it, the desired object is in that ServerResponse, but how to I get it's body? The interface doesn't offer a method for that?!
Any help is appreciated! 🙂