Improved DataBufferUtilsTest

This commit is contained in:
Arjen Poutsma 2016-07-19 11:11:05 +02:00
parent 4b92bf2af1
commit 35ce1945e0
1 changed files with 3 additions and 4 deletions

View File

@ -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());