提交 35ce1945 编写于 作者: A Arjen Poutsma

Improved DataBufferUtilsTest

上级 4b92bf2a
......@@ -61,16 +61,15 @@ public class DataBufferUtilsTests extends AbstractDataBufferAllocatingTestCase {
.toURI();
FileChannel channel = FileChannel.open(Paths.get(uri), StandardOpenOption.READ);
Flux<DataBuffer> flux = DataBufferUtils.read(channel, this.bufferFactory, 2);
Flux<DataBuffer> flux = DataBufferUtils.read(channel, this.bufferFactory, 5);
TestSubscriber
.subscribe(flux)
.assertNoError()
.assertComplete()
.assertValuesWith(
stringConsumer("fo"), stringConsumer("ob"),
stringConsumer("ar"), stringConsumer("ba"),
stringConsumer("zq"), stringConsumer("ux")
stringConsumer("fooba"), stringConsumer("rbazq"),
stringConsumer("ux")
);
assertFalse(channel.isOpen());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册