In the web world, we configure a mock environment instead of starting a real web server for integration tests, with the following:
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
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.
Comment From: spencergibb
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.
Comment From: eddumelendez
Hi, I was thinking about the testing support for RSocket las week and at high level this is the list
RScocketRequesterTestClientinspring-framework, similar toWebTestClientbut usingRSocketRequester.RSocketServiceServerinspring-framework, similar toMockRestServiceServer@RSocketClientTestfor slice testing inspring-boot, which allows to autowireRScocketRequesterTestClientto perform requests and assertions againstRSocketServiceServer.@RSocketTestto enable de infrastructure for RSocket, similar to@WebFluxTestor@WebMvcTest
Comment From: bclozel
Closing as there is not much demand for this and missing infrastructure in Framework.