Skip to content

Commit c2e7b63

Browse files
committed
Polishing
1 parent e75556b commit c2e7b63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/test/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReaderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void readPartsWithoutDemand() {
154154
@Test
155155
public void gh23768() throws IOException {
156156
ReadableByteChannel channel = new ClassPathResource("invalid.multipart", getClass()).readableChannel();
157-
Flux<DataBuffer> body = DataBufferUtils.readByteChannel(() -> channel, this.bufferFactory, 1024);
157+
Flux<DataBuffer> body = DataBufferUtils.readByteChannel(() -> channel, new DefaultDataBufferFactory(), 1024);
158158

159159
MediaType contentType = new MediaType("multipart", "form-data",
160160
singletonMap("boundary", "NbjrKgjbsaMLdnMxMfDpD6myWomYc0qNX0w"));
@@ -165,7 +165,7 @@ public void gh23768() throws IOException {
165165
Mono<MultiValueMap<String, Part>> parts = this.reader.readMono(PARTS_ELEMENT_TYPE, request, emptyMap());
166166

167167
StepVerifier.create(parts)
168-
.assertNext(result -> assertThat(result).isEmpty())
168+
.assertNext(result -> assertTrue(result.isEmpty()))
169169
.verifyComplete();
170170
}
171171

0 commit comments

Comments
 (0)