Clean up warnings in spring-test
This commit is contained in:
parent
0f0aa46e49
commit
b053311306
|
@ -25,7 +25,6 @@ import java.util.function.Consumer;
|
|||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
|
||||
import org.springframework.format.FormatterRegistry;
|
||||
import org.springframework.http.codec.HttpMessageWriter;
|
||||
import org.springframework.http.codec.ServerCodecConfigurer;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
@ -141,8 +140,6 @@ class DefaultControllerSpec extends AbstractMockServerSpec<WebTestClient.Control
|
|||
|
||||
private Consumer<ServerCodecConfigurer> messageCodecsConsumer;
|
||||
|
||||
private Consumer<List<HttpMessageWriter<?>>> writersConsumer;
|
||||
|
||||
private Consumer<FormatterRegistry> formattersConsumer;
|
||||
|
||||
private Validator validator;
|
||||
|
|
|
@ -43,7 +43,6 @@ import static org.junit.Assert.*;
|
|||
public class WebTestClientConnectorTests {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
||||
public void captureAndClaim() throws Exception {
|
||||
ClientHttpRequest request = new MockClientHttpRequest(HttpMethod.GET, "/test");
|
||||
ClientHttpResponse response = new MockClientHttpResponse(HttpStatus.OK);
|
||||
|
|
|
@ -146,7 +146,6 @@ public class ResponseEntityTests {
|
|||
}
|
||||
|
||||
@GetMapping(produces = "text/event-stream")
|
||||
@SuppressWarnings("deprecation")
|
||||
Flux<Person> getPersonStream() {
|
||||
return Flux.intervalMillis(100).onBackpressureBuffer(10).map(index -> new Person("N" + index));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue