swangkkb / rest-assured

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

Add session support #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
SessionFilter sessionFilter = new SessionFilter();

      given().
              auth().form("John", "Doe").
              filter(sessionFilter).
      expect().
              statusCode(200).
              body(equalTo("OK")).
      when().
              get("/formAuth");

      given().
              filter(sessionFilter). // Reuse the same session filter instance to automatically apply the session id from the previous response
      expect().
              statusCode(200).
              body(equalTo("OK")).
      when().
              get("/formAuth");

Original issue reported on code.google.com by johan.ha...@gmail.com on 22 Nov 2013 at 4:06

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 22 Nov 2013 at 4:08