RE: Issues in Struts2 unit testing

2014-06-13 Thread Martin Gainty
> Date: Fri, 13 Jun 2014 19:01:31 +0530 > Subject: Re: Issues in Struts2 unit testing > From: akrajmscjavaquest...@gmail.com > To: user@struts.apache.org > > Hi Paul, > > I placed the break points in struts code. But the control is not redirected > to strut

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
I think you need to minimize your test case and start from something simpler to diagnose the problem. First try using the default stack alone. Let us know how that turns out. Cheers, Paul On Fri, Jun 13, 2014 at 8:25 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Team, > > > Is

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
Hi Paul, I placed the break points in struts code. But the control is not redirected to struts code. its throws error in interceptor code.\ Thanks Krishnaraj On Fri, Jun 13, 2014 at 6:58 PM, Paul Benedict wrote: > Go set a breakpoint in Struts where the ISE is being thrown and see what > con

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
Go set a breakpoint in Struts where the ISE is being thrown and see what condition is being tested. If possible, take some time to determine when that condition is being set before your invocation. Cheers, Paul On Fri, Jun 13, 2014 at 8:25 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrot

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
Hi Team, Is any help for the above issue Thanks Krishna raj On Thu, Jun 12, 2014 at 9:05 PM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Dave, > > I added my struts code. > > Junit Code: > > public class AdminValidation extends StrutsTestCase { > > @Test > public void

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