Campoie / rest-assured

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

Enable setting root path in standard expecations #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. instead of

expect().
         body("x.y.firstName", is(..)).
         body("x.y.lastName", is(..)).
         body("x.y.age", is(..)).
         body("x.y.gender", is(..)).
when().get(..);

You should be able to do something in the line of:

expect().
         rootPath("x.y").
         body("firstName", is(..)).
         body("lastName", is(..)).
         body("age", is(..)).
         body("gender", is(..)).
when().get(..);

Original issue reported on code.google.com by johan.ha...@gmail.com on 23 Mar 2011 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 24 Mar 2011 at 6:31