Browse Source

Clean up warnings in spring-test

pull/1369/head
Sam Brannen 8 years ago
parent
commit
b053311306
  1. 3
      spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultControllerSpec.java
  2. 1
      spring-test/src/test/java/org/springframework/test/web/reactive/server/WebTestClientConnectorTests.java
  3. 1
      spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ResponseEntityTests.java

3
spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultControllerSpec.java

@ -25,7 +25,6 @@ import java.util.function.Consumer; @@ -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 @@ -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;

1
spring-test/src/test/java/org/springframework/test/web/reactive/server/WebTestClientConnectorTests.java

@ -43,7 +43,6 @@ import static org.junit.Assert.*; @@ -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);

1
spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/ResponseEntityTests.java

@ -146,7 +146,6 @@ public class ResponseEntityTests { @@ -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…
Cancel
Save