Polishing

This commit is contained in:
Arjen Poutsma
2019-11-07 15:03:28 +01:00
parent e75556bc7b
commit c2e7b6341c

View File

@@ -154,7 +154,7 @@ public class SynchronossPartHttpMessageReaderTests {
@Test
public void gh23768() throws IOException {
ReadableByteChannel channel = new ClassPathResource("invalid.multipart", getClass()).readableChannel();
Flux<DataBuffer> body = DataBufferUtils.readByteChannel(() -> channel, this.bufferFactory, 1024);
Flux<DataBuffer> body = DataBufferUtils.readByteChannel(() -> channel, new DefaultDataBufferFactory(), 1024);
MediaType contentType = new MediaType("multipart", "form-data",
singletonMap("boundary", "NbjrKgjbsaMLdnMxMfDpD6myWomYc0qNX0w"));
@@ -165,7 +165,7 @@ public class SynchronossPartHttpMessageReaderTests {
Mono<MultiValueMap<String, Part>> parts = this.reader.readMono(PARTS_ELEMENT_TYPE, request, emptyMap());
StepVerifier.create(parts)
.assertNext(result -> assertThat(result).isEmpty())
.assertNext(result -> assertTrue(result.isEmpty()))
.verifyComplete();
}