oscar perez wrote:
HI all,
I am using appfuse as start-up application for one project.
The problem is that when I upgraded from struts 2.0.11.1 to 2.1.1 my test
cases are no longer working as ActionContext.getContext() returns null.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg29571.html
I read about the refactoring of ActionContext and while I agree I cannot see
a quick-and-dirty workaround to solve this problem. How can I get a context
for running my tests now?
Thanks,
Oscar
You need to follow the same approach used by the test cases in 2.1;
that is to setup a Configuration and create a context prior to invoking
the action.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]