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
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 25 Mar 2014 at 7:30