Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add support for alias to expect #270

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 15 Nov 2013 at 4:56

GoogleCodeExporter commented 9 years ago
Probably a bad idea, enough with test name

Original comment by johan.ha...@gmail.com on 20 Nov 2013 at 8:27