Fix compatibility with Reactor & Spring Data
This commit is contained in:
@@ -180,7 +180,7 @@ public class RSocketInboundGatewayIntegrationTests {
|
||||
@EnableIntegration
|
||||
static class ServerConfig extends CommonConfig {
|
||||
|
||||
final Sinks.StandaloneMonoSink<RSocketRequester> clientRequester = Sinks.promise();
|
||||
final Sinks.One<RSocketRequester> clientRequester = Sinks.one();
|
||||
|
||||
@Bean
|
||||
public CloseableChannel rsocketServer() {
|
||||
@@ -203,7 +203,7 @@ public class RSocketInboundGatewayIntegrationTests {
|
||||
|
||||
@EventListener
|
||||
public void onApplicationEvent(RSocketConnectedEvent event) {
|
||||
this.clientRequester.success(event.getRequester());
|
||||
this.clientRequester.emitValue(event.getRequester());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -538,13 +538,13 @@ public class RSocketOutboundGatewayIntegrationTests {
|
||||
@Controller
|
||||
static class TestController {
|
||||
|
||||
final Sinks.StandaloneFluxSink<String> fireForgetPayloads = Sinks.replayAll();
|
||||
final Sinks.Many<String> fireForgetPayloads = Sinks.many().replay().all();
|
||||
|
||||
final Sinks.StandaloneMonoSink<RSocketRequester> clientRequester = Sinks.promise();
|
||||
final Sinks.One<RSocketRequester> clientRequester = Sinks.one();
|
||||
|
||||
@MessageMapping("receive")
|
||||
void receive(String payload) {
|
||||
this.fireForgetPayloads.next(payload);
|
||||
this.fireForgetPayloads.emitNext(payload);
|
||||
}
|
||||
|
||||
@MessageMapping("echo")
|
||||
@@ -596,7 +596,7 @@ public class RSocketOutboundGatewayIntegrationTests {
|
||||
|
||||
@ConnectMapping("clientConnect")
|
||||
void clientConnect(RSocketRequester requester) {
|
||||
this.clientRequester.success(requester);
|
||||
this.clientRequester.emitValue(requester);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user