Adapt integration test to new HAL link name for children

This commit is contained in:
René Pfeuffer
2018-10-10 10:56:41 +02:00
parent 8daf477641
commit 4e051a000d
2 changed files with 13 additions and 19 deletions

View File

@@ -201,7 +201,7 @@ public class RepositoryAccessITCase {
.then()
.statusCode(HttpStatus.SC_OK)
.extract()
.path("_embedded.files.find{it.name=='a.txt'}._links.self.href");
.path("_embedded.children.find{it.name=='a.txt'}._links.self.href");
given()
.when()
@@ -216,7 +216,7 @@ public class RepositoryAccessITCase {
.then()
.statusCode(HttpStatus.SC_OK)
.extract()
.path("_embedded.files.find{it.name=='subfolder'}._links.self.href");
.path("_embedded.children.find{it.name=='subfolder'}._links.self.href");
String selfOfSubfolderUrl = given()
.when()
.get(subfolderSourceUrl)
@@ -231,7 +231,7 @@ public class RepositoryAccessITCase {
.then()
.statusCode(HttpStatus.SC_OK)
.extract()
.path("_embedded.files[0]._links.self.href");
.path("_embedded.children[0]._links.self.href");
given()
.when()
.get(subfolderContentUrl)