Campoie / rest-assured

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

Support for re-usable expectations and re-usable "givens" #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Instead of doing: 

given().
        body(..).
        body(..).
        body(..).
        body(..).
        body(..).
        param(..).
expect().
         body(..).
         body(..).
         body(..).
         header(..).
when().
       get(..);

it would be nice to able able to re-use. E.g.

given().
        spec(requestSpec1).
        spec(requestSpec2).
expect().
        spec(responseSpec1).
        spec(responseSpec2).
when().
        get(..);

The specifications can be re-used in multiple tests.

Original issue reported on code.google.com by johan.ha...@gmail.com on 23 Mar 2011 at 6:46

GoogleCodeExporter commented 9 years ago
Support for reusable expectations is now implemented

Original comment by johan.ha...@gmail.com on 26 Mar 2011 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 27 Mar 2011 at 6:11