gihanmalan / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add "detachRoot" #319

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example if creating a reusable method:

private Response m() {
      return new ResponseSpecBuilder().appendRootPath("survey").
                expectBody("id", equalTo(survey.id())).
                expectBody("question", equalTo(survey.question)).
                expectBody("required_number_of_answers", is(survey.requiredNumberOfAnswers)).
                detachRootPath("survey").build();
}

Original issue reported on code.google.com by johan.ha...@gmail.com on 25 Mar 2014 at 7:30

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 25 Mar 2014 at 8:14