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
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 22 Nov 2011 at 4:03