struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joey Watson" <>
Subject ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.
Date Fri, 01 Feb 2008 08:28:34 GMT
Hi everybody.

I want to test a action class (Struts2) by JUnit. and then method in
this action need a value in session, then when I run my JUnit test
class,  ActionContext.getContext().getSession return null. (not
ActionContext.getContext().getSession().get("XXX") return null).
this action class is working fine in browser.

thanks for any help


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message