From ef9a45dd537e2764d9e7fb93b84b2dea547f01f7 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Thu, 5 Sep 2019 06:52:39 -0500 Subject: [PATCH] #1058 - Migrate off deprecated Spring APIs. --- .../collectionjson/CollectionJsonWebFluxIntegrationTest.java | 2 +- .../mediatype/hal/forms/HalFormsWebFluxIntegrationTest.java | 2 +- .../hateoas/mediatype/uber/UberWebFluxIntegrationTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/springframework/hateoas/mediatype/collectionjson/CollectionJsonWebFluxIntegrationTest.java b/src/test/java/org/springframework/hateoas/mediatype/collectionjson/CollectionJsonWebFluxIntegrationTest.java index f6fcf08a..ea559cd0 100644 --- a/src/test/java/org/springframework/hateoas/mediatype/collectionjson/CollectionJsonWebFluxIntegrationTest.java +++ b/src/test/java/org/springframework/hateoas/mediatype/collectionjson/CollectionJsonWebFluxIntegrationTest.java @@ -142,7 +142,7 @@ class CollectionJsonWebFluxIntegrationTest { this.testClient.post().uri("http://localhost/employees") // .contentType(MediaTypes.COLLECTION_JSON) // - .syncBody(specBasedJson) // + .bodyValue(specBasedJson) // .exchange() // .expectStatus().isCreated() // .expectHeader().valueEquals(HttpHeaders.LOCATION, "http://localhost/employees/2"); diff --git a/src/test/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsWebFluxIntegrationTest.java b/src/test/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsWebFluxIntegrationTest.java index 33660062..bd2e6550 100644 --- a/src/test/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsWebFluxIntegrationTest.java +++ b/src/test/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsWebFluxIntegrationTest.java @@ -122,7 +122,7 @@ class HalFormsWebFluxIntegrationTest { String specBasedJson = MappingUtils.read(new ClassPathResource("new-employee.json", getClass())); this.testClient.post().uri("http://localhost/employees").contentType(MediaTypes.HAL_FORMS_JSON) - .syncBody(specBasedJson) // + .bodyValue(specBasedJson) // .exchange() // .expectStatus().isCreated() // .expectHeader().valueEquals(HttpHeaders.LOCATION, "http://localhost/employees/2"); diff --git a/src/test/java/org/springframework/hateoas/mediatype/uber/UberWebFluxIntegrationTest.java b/src/test/java/org/springframework/hateoas/mediatype/uber/UberWebFluxIntegrationTest.java index be0b7585..4fcfb22c 100644 --- a/src/test/java/org/springframework/hateoas/mediatype/uber/UberWebFluxIntegrationTest.java +++ b/src/test/java/org/springframework/hateoas/mediatype/uber/UberWebFluxIntegrationTest.java @@ -191,7 +191,7 @@ class UberWebFluxIntegrationTest { this.testClient.post().uri("http://localhost/employees") // .contentType(MediaTypes.UBER_JSON) // - .syncBody(input) // + .bodyValue(input) // .exchange() // .expectStatus().isCreated() // .expectHeader().valueEquals(HttpHeaders.LOCATION, "http://localhost/employees/2");