--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I realized that my example in my first post is not indicative of the actual issue, and I think I've finally narrowed it down. If the JSON response looks like this:{"lotto":{"lottoId":5,"winning-numbers":[2,45,34,23,7,5,3],"winners":[{"winnerId":23,"numbers":[2,45,34,23,3,5]},{"winnerId":54,"numbers":[52,3,12,11,18,22]}]}}Then the following two calls to the body method seem to function identically:...body("lotto.winners.winnerId", hasItems(23, 54))and...body("lotto.winners.WINNERID", hasItems(23, 54))
when().
get("/lotto").
then().
body("lotto.winners.WINNERID", hasItems(23, 54));
However, if you try to do something like ...body("lotto.WINNERS", notNullValue()) -- this will fail.