Closed GoogleCodeExporter closed 9 years ago
I've resolve my problem :) Thx
.body( "get(0).name", equalTo( "name" ) )
Original comment by Azazel....@gmail.com
on 29 Apr 2011 at 8:09
Exactly. I think you can do
.body( "[0].name", equalTo("name") )
as well. Or if yo want to verify both names in the same expression:
.body( "name", hasItems("name", "name2") )
Thanks for using REST Assured (remember that you can also use the mailing-list
if you need any further support)
Original comment by johan.ha...@gmail.com
on 2 May 2011 at 6:27
Original issue reported on code.google.com by
Azazel....@gmail.com
on 28 Apr 2011 at 2:41