E.g. something like this:
given().
auth().form("John", "Doe", log().all()).
expect().
statusCode(200).
body(equalTo("OK")).
when().
get("/formAuth");
Note that it should log the request sent automatically sent by FormAuthFilter
(1).
Another alternative would be to copy the Request- and ResponseLoggingFilter
from the original request and use them in (1). E.g.
given().
auth().form("John", "Doe").
log().all().
expect().
statusCode(200).
log().all().
body(equalTo("OK")).
when().
get("/formAuth");
Would log the two requests and two responses being made.
Original issue reported on code.google.com by johan.ha...@gmail.com on 22 Nov 2013 at 4:16
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 22 Nov 2013 at 4:16