Hello,
I am trying to test cookie login on my site. However I cannot find any
cookies in my test method.
Here is my code snippet:
public void beginLoginCookie (WebRequest wr){
wr.addCookie("www.domain.com:80",ServletUtils.COOKIE_NAME,"myvalue");
wr.setURL("www.domain.com:80", "", "/login.html", null,null);
dBSnapshot();
ServletUtils.log("after snapshot");
}
public void testLoginCookie() throws Exception{
controller.doGet(request,response);
}
My controller servlet cannot find anything in the request.
Does the request reset after begin method? Should I put the cookie
directly into the request in the testLoginCookie() method?
Denis
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]