djangid / rest-assured

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

Apply root-path for multi-body expectactions #135

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
expect().
                root("store.book").
                body(
                    "price.min()", is(8.95)).
                    "price.max()", is(22.99)).
                    "max { it.price }.title", is("The Lord of the Rings")).
                    "findAll { it.price < 10 }.title", hasItems("Sayings of the Century", "Moby Dick")).
                    "author*.length().sum()", allOf(greaterThan(10), lessThan(1100))).
                    "author.any { name -> name == 'Nigel Rees' }", is(true)).
        when().
                get("/jsonStore");

Root path is not applied for these kinds of body expecations.

Original issue reported on code.google.com by johan.ha...@gmail.com on 22 Nov 2011 at 4:03

GoogleCodeExporter commented 8 years ago

Original comment by johan.ha...@gmail.com on 23 Nov 2011 at 3:59