struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <mcucchi...@apache.org>
Subject Re: svn commit: r1311951 - /struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java
Date Wed, 11 Apr 2012 17:28:03 GMT
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 <lukaszlenart@apache.org> wrote:
> 2012/4/11 Maurizio Cucchiara <mcucchiara@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message