Since Struts Junit Test uses MockHttp stuff, I thought that it would be a good thing leave that layer consistent.
Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 11 April 2012 18:58, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2012/4/11 Maurizio Cucchiara <mcucchi...@apache.org>: >> Hi Lukasz, >> >>> + actionContext.setSession(new HashMap<String, Object>()); >> >> >> what about setting session at a lower level (I didn't test though): >> >> request.setSession(new MockHttpSession(servletContext)); > > but basically, the S2 actions shouldn't depend on the raw servlet > objects, but maybe it'd be good to test interceptors > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org