given().
contentType(JSON).
body("{ \"firstName\" : \""+firstName+"\", \"lastName\" : \""+lastName+"\" }").
expect("Failed to create account").
statusCode(200).
when().
post("/accounts");
If this fails then what's written in the expect method should be visible in the
error message
Original issue reported on code.google.com by johan.ha...@gmail.com on 15 Nov 2013 at 1:28
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 15 Nov 2013 at 1:28