Call the right endpoint in REST Assured field reuse example
Closes gh-324
This commit is contained in:
@@ -90,7 +90,7 @@ public class Payload {
|
|||||||
.filter(document("books", responseFields(
|
.filter(document("books", responseFields(
|
||||||
fieldWithPath("[]").description("An array of books")) // <1>
|
fieldWithPath("[]").description("An array of books")) // <1>
|
||||||
.andWithPrefix("[].", book))) // <2>
|
.andWithPrefix("[].", book))) // <2>
|
||||||
.when().get("/books/1")
|
.when().get("/books")
|
||||||
.then().assertThat().statusCode(is(200));
|
.then().assertThat().statusCode(is(200));
|
||||||
// end::book-array[]
|
// end::book-array[]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user