#1058 - Migrate off deprecated Spring APIs.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user