#1058 - Migrate off deprecated Spring APIs.

This commit is contained in:
Greg Turnquist
2019-09-05 06:52:39 -05:00
parent 2ae4744a02
commit ef9a45dd53
3 changed files with 3 additions and 3 deletions

View File

@@ -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");

View File

@@ -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");

View File

@@ -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");