This content has been marked as final. Show 1 reply
You shouldn't use the HttpSession for this because the session is cleared (but not destroyed) each time you create a new JSFClientSession.
I suggest using the application scope instead.
ServletContext context = (ServletContext)server.getFacesContext().getExternalContext().getContext(); context.setAttribute("foobar", "test");
Also, this new wiki I just wrote might shed some light on JSFUnit's use of the HttpSession: