Open bclozel opened 5 years ago
This would be extremely useful for the Gateway RSocket Broker. Can't wait to see what you come up with. Let me know if I can help.
Hi, I was thinking about the testing support for RSocket las week and at high level this is the list
RScocketRequesterTestClient
in spring-framework
, similar to WebTestClient
but using RSocketRequester
.RSocketServiceServer
in spring-framework
, similar to MockRestServiceServer
@RSocketClientTest
for slice testing in spring-boot
, which allows to autowire RScocketRequesterTestClient
to perform requests and assertions against RSocketServiceServer
.@RSocketTest
to enable de infrastructure for RSocket, similar to @WebFluxTest
or @WebMvcTest
In the web world, we configure a mock environment instead of starting a real web server for integration tests, with the following:
It would be nice to explore whether we can configure a local transport (
rsocket-transport-local
) to test interactions between an RSocket server and an RSocket client. This might require changes in Spring Framework with the RSocketRequester, or test infrastructure to make things easier.