add assertion that a new session is in fact new

This commit is contained in:
Jesse McConnell 2012-02-09 12:42:18 -06:00
parent b949fb7622
commit d13599a1d1
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.eclipse.jetty.client.ContentExchange;
import org.eclipse.jetty.client.HttpClient;
@ -109,7 +110,8 @@ public abstract class AbstractNewSessionTest
String action = request.getParameter("action");
if ("create".equals(action))
{
request.getSession(true);
HttpSession session = request.getSession(true);
assertTrue(session.isNew());
}
else if ("old-create".equals(action))
{