Replace deprecated methods in RSocket tests
This commit is contained in:
@@ -86,7 +86,7 @@ public class RSocketBufferLeakTests {
|
||||
|
||||
server = RSocketFactory.receive()
|
||||
.frameDecoder(PayloadDecoder.ZERO_COPY)
|
||||
.addServerPlugin(payloadInterceptor) // intercept responding
|
||||
.addResponderPlugin(payloadInterceptor) // intercept responding
|
||||
.acceptor(context.getBean(RSocketMessageHandler.class).serverAcceptor())
|
||||
.transport(TcpServerTransport.create("localhost", 7000))
|
||||
.start()
|
||||
@@ -95,7 +95,7 @@ public class RSocketBufferLeakTests {
|
||||
requester = RSocketRequester.builder()
|
||||
.rsocketFactory(factory -> {
|
||||
factory.frameDecoder(PayloadDecoder.ZERO_COPY);
|
||||
factory.addClientPlugin(payloadInterceptor); // intercept outgoing requests
|
||||
factory.addRequesterPlugin(payloadInterceptor); // intercept outgoing requests
|
||||
})
|
||||
.rsocketStrategies(context.getBean(RSocketStrategies.class))
|
||||
.connectTcp("localhost", 7000)
|
||||
|
||||
@@ -65,7 +65,7 @@ public class RSocketClientToServerIntegrationTests {
|
||||
context = new AnnotationConfigApplicationContext(ServerConfig.class);
|
||||
|
||||
server = RSocketFactory.receive()
|
||||
.addServerPlugin(interceptor)
|
||||
.addResponderPlugin(interceptor)
|
||||
.frameDecoder(PayloadDecoder.ZERO_COPY)
|
||||
.acceptor(context.getBean(RSocketMessageHandler.class).serverAcceptor())
|
||||
.transport(TcpServerTransport.create("localhost", 7000))
|
||||
|
||||
Reference in New Issue
Block a user