@Test public void shouldConvertToBuffer() { DataBuffer dataBuffer = dataBufferFactory.wrap("test".getBytes()); Buffer expectedBuffer = Buffer.buffer("test"); Buffer actualBuffer = converter.toBuffer(dataBuffer); assertThat(actualBuffer).isEqualTo(expectedBuffer); }
public Buffer toBuffer(DataBuffer dataBuffer) { ByteBuf byteBuf = NettyDataBufferFactory.toByteBuf(dataBuffer); return Buffer.buffer(byteBuf); }
BufferConverter { public Buffer toBuffer(DataBuffer dataBuffer) { ByteBuf byteBuf = NettyDataBufferFactory.toByteBuf(dataBuffer); return Buffer.buffer(byteBuf); } }
BufferConverter { public Buffer toBuffer(DataBuffer dataBuffer) { ByteBuf byteBuf = NettyDataBufferFactory.toByteBuf(dataBuffer); return Buffer.buffer(byteBuf); } BufferConverter();  BufferConverter(NettyDataBufferFactory dataBufferFactory); }
BufferConverter { public Buffer toBuffer(DataBuffer dataBuffer) { ByteBuf byteBuf = NettyDataBufferFactory.toByteBuf(dataBuffer); return Buffer.buffer(byteBuf); } BufferConverter();  BufferConverter(NettyDataBufferFactory dataBufferFactory); NettyDataBufferFactory getDataBufferFactory(); DataBuffer toDataBuffer(Buffer buffer); Buffer toBuffer(DataBuffer dataBuffer); }
BufferConverter { public Buffer toBuffer(DataBuffer dataBuffer) { ByteBuf byteBuf = NettyDataBufferFactory.toByteBuf(dataBuffer); return Buffer.buffer(byteBuf); } BufferConverter();  BufferConverter(NettyDataBufferFactory dataBufferFactory); NettyDataBufferFactory getDataBufferFactory(); DataBuffer toDataBuffer(Buffer buffer); Buffer toBuffer(DataBuffer dataBuffer);  }