Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Paul, The control is not redirected to execute() method. Thanks Krishnaraj On Thu, Jun 12, 2014 at 8:48 PM, Paul Benedict wrote: > Put a breakpoint in your execute() and see if it's being called. The error > message might be telling the truth: the action has already been executed. > > > C

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Dave, I added my struts code. Junit Code: public class AdminValidation extends StrutsTestCase { @Test public void testUserNameErrorMessage() throws Exception { HttpSession session = request.getSession(); UserVO uservo1 =new UserVO(); uservo1.setUserMailId("a

Re: Issues in Struts2 unit testing

2014-06-12 Thread Paul Benedict
Put a breakpoint in your execute() and see if it's being called. The error message might be telling the truth: the action has already been executed. Cheers, Paul On Thu, Jun 12, 2014 at 10:15 AM, Dave Newton wrote: > Without knowing what's in your interceptor stack it's impossible to help. >

Re: Issues in Struts2 unit testing

2014-06-12 Thread Dave Newton
Without knowing what's in your interceptor stack it's impossible to help. Dave On Thu, Jun 12, 2014 at 11:11 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Team, > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit plugin >

Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Team, Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit plugin . The normal actions which is working fine. But I have issue when I am testing the action which has interceptor. /MainAdmin.jsp