Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-24 Thread miguel
On Thu, 2011-09-22 at 10:23 +0200, Maurizio Cucchiara wrote: The reason behind is simple: no browser no redirect. The redirect is sent as http header, so as long as there is no browser to interpret the header there is no way to redirect. You might call by yourself the second action, WDYT?

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-24 Thread Carl Ballantyne
Just a thought but make sure hibernate is sending the sql to the database. Try stepping through your code using the debugger and add relevant logging to be sure. Call flush() if necessary. On Sat, Sep 24, 2011 at 1:18 PM, miguel mig...@almeida.at wrote: On Thu, 2011-09-22 at 10:23 +0200,

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-22 Thread Maurizio Cucchiara
The reason behind is simple: no browser no redirect. The redirect is sent as http header, so as long as there is no browser to interpret the header there is no way to redirect. You might call by yourself the second action, WDYT? PS: FWIW I have not read the optional reading :) Maurizio

Can Struts Junit plugin be used to test the redirect result of an action

2011-09-21 Thread Miguel Almeida
I am using the Struts Junit plugin (http://struts.apache.org/2.2.3.1/docs/struts-2-junit-plugin-tutorial.html ), extending the StrutsSpringTestCase for a regression test of an action in my application. (Optional reading: Long story short on the problem, the action adds a record to a database