Skip to content

Commit 82d32f0

Browse files
committed
Remove unused import
1 parent 4038d59 commit 82d32f0

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,9 +23,7 @@
2323
import java.util.List;
2424
import java.util.Map;
2525

26-
import org.junit.Before;
2726
import org.junit.Test;
28-
import org.reactivestreams.Publisher;
2927
import reactor.core.publisher.Flux;
3028
import reactor.core.publisher.Mono;
3129
import reactor.core.publisher.UnicastProcessor;
@@ -58,13 +56,7 @@ public class MultipartHttpMessageWriterTests extends AbstractLeakCheckingTestCas
5856
private final MultipartHttpMessageWriter writer =
5957
new MultipartHttpMessageWriter(ClientCodecConfigurer.create().getWriters());
6058

61-
private MockServerHttpResponse response;
62-
63-
64-
@Before
65-
public void setUp() {
66-
this.response = new MockServerHttpResponse(this.bufferFactory);
67-
}
59+
private final MockServerHttpResponse response = new MockServerHttpResponse(this.bufferFactory);
6860

6961

7062
@Test
@@ -86,7 +78,6 @@ public void canWrite() {
8678

8779
@Test
8880
public void writeMultipart() throws Exception {
89-
9081
Resource logo = new ClassPathResource("/org/springframework/http/converter/logo.jpg");
9182
Resource utf8 = new ClassPathResource("/org/springframework/http/converter/logo.jpg") {
9283
@Override
@@ -175,7 +166,7 @@ private String decodeToString(Part part) {
175166
Collections.emptyMap()).block(Duration.ZERO);
176167
}
177168

178-
@Test // SPR-16402
169+
@Test // SPR-16402
179170
public void singleSubscriberWithResource() throws IOException {
180171
UnicastProcessor<Resource> processor = UnicastProcessor.create();
181172
Resource logo = new ClassPathResource("/org/springframework/http/converter/logo.jpg");
@@ -217,7 +208,7 @@ public void singleSubscriberWithStrings() {
217208
this.response.getBodyAsString().block(Duration.ofSeconds(5));
218209
}
219210

220-
@Test // SPR-16376
211+
@Test // SPR-16376
221212
public void customContentDisposition() throws IOException {
222213
Resource logo = new ClassPathResource("/org/springframework/http/converter/logo.jpg");
223214
Flux<DataBuffer> buffers = DataBufferUtils.read(logo, new DefaultDataBufferFactory(), 1024);

0 commit comments

Comments
 (0)