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 <[email protected]> wrote:
> 2012/4/11 Maurizio Cucchiara <[email protected]>:
>> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to