I have a Spring project using Java Rx Observables and a controller that returns a DeferredResult. When I test it with Rest assured using mockmvc, the response status code is 200 but the body is empty so any assertions fail. I can test the same code path with a ResponseEntity using toBlocking().first() on the Observable my service returns and all my rest assured assertions pass. I'm assuming this is because the mock doesn't know about the async nature of the response.
Is there any way to get rest assured to work with a DeferredResult?
Thanks