Permalink
Browse files

Added more tests

  • Loading branch information...
1 parent dfb816c commit 5e1ca5e67de3e1646c90d7dd40e1271cf1070e11 @johanhaleby johanhaleby committed Apr 13, 2012
@@ -57,7 +57,11 @@ public void advancedJsonValidation2() throws Exception {
statusCode(allOf(greaterThanOrEqualTo(200), lessThanOrEqualTo(300))).
root("store.book").
body("findAll { book -> book.price < 10 }.title", hasItems("Sayings of the Century", "Moby Dick")).
+ body("price.min()", equalTo(8.95f)).
+ body("price.max()", equalTo(22.99f)).
+ body("min { it.price }.title", equalTo("Sayings of the Century")).
body("author*.length().sum()", equalTo(53)).
+ body("author*.length().sum(2, { it * 2 })", is(108)).
when().
get("/jsonStore");
}

0 comments on commit 5e1ca5e

Please sign in to comment.