Clean up warnings in spring-test
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user