Clean up warnings in spring-test
This commit is contained in:
parent
c855182e03
commit
4b1e3df283
|
|
@ -57,7 +57,6 @@ import static org.springframework.test.util.AssertionErrors.assertTrue;
|
||||||
import static org.springframework.web.reactive.function.BodyExtractors.toFlux;
|
import static org.springframework.web.reactive.function.BodyExtractors.toFlux;
|
||||||
import static org.springframework.web.reactive.function.BodyExtractors.toMono;
|
import static org.springframework.web.reactive.function.BodyExtractors.toMono;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link WebTestClient}.
|
* Default implementation of {@link WebTestClient}.
|
||||||
*
|
*
|
||||||
|
|
@ -476,7 +475,6 @@ class DefaultWebTestClient implements WebTestClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public EntityExchangeResult<List<E>> returnResult() {
|
public EntityExchangeResult<List<E>> returnResult() {
|
||||||
return getResult();
|
return getResult();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.test.web.reactive.server.samples;
|
package org.springframework.test.web.reactive.server.samples;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
|
@ -32,6 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
* Samples of tests with serialized JSON content.
|
* Samples of tests with serialized JSON content.
|
||||||
*
|
*
|
||||||
* @author Rossen Stoyanchev
|
* @author Rossen Stoyanchev
|
||||||
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
public class JsonContentTests {
|
public class JsonContentTests {
|
||||||
|
|
||||||
|
|
@ -71,7 +73,6 @@ public class JsonContentTests {
|
||||||
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@SuppressWarnings("unused")
|
|
||||||
static class PersonController {
|
static class PersonController {
|
||||||
|
|
||||||
@GetMapping("/persons")
|
@GetMapping("/persons")
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ import static org.junit.Assert.assertThat;
|
||||||
import static org.springframework.core.ResolvableType.forClassWithGenerics;
|
import static org.springframework.core.ResolvableType.forClassWithGenerics;
|
||||||
import static org.springframework.http.MediaType.TEXT_EVENT_STREAM;
|
import static org.springframework.http.MediaType.TEXT_EVENT_STREAM;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Annotated controllers accepting and returning typed Objects.
|
* Annotated controllers accepting and returning typed Objects.
|
||||||
*
|
*
|
||||||
|
|
@ -133,7 +132,6 @@ public class ResponseEntityTests {
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/persons")
|
@RequestMapping("/persons")
|
||||||
@SuppressWarnings("unused")
|
|
||||||
static class PersonController {
|
static class PersonController {
|
||||||
|
|
||||||
@GetMapping("/{name}")
|
@GetMapping("/{name}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue