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
a","no-cache"); > > response.setHeader("Cache-Control","no-store"); > > response.setHeader("Expires","0"); > > response.setDateHeader("Expires",-1); > > response.setCharacterEncoding

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
t;); > > > } > > > } > > > > > > else { > > > return "login"; > > > > > > } > > > response.setHeader("Pragma","no-cache"); > > > response.s

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
eader("Pragma","no-cache"); > > response.setHeader("Cache-Control","no-store"); > > response.setHeader("Expires","0"); > > response.setDateHeader("Expires",-1); > > response

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
;Expires",-1); > response.setCharacterEncoding("UTF-8"); > return invocation.invoke(); > > } > } > > I debug the application by placing the break point. When the control go to > " return invocation.invoke();" it throws error. >

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
1:11 AM, Krishnaraj A < > > akrajmscjavaquest...@gmail.com> wrote: > > > > > Hi Team, > > > > > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit > > plugin > > > <http://struts.apache.org/2.3.1.2

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
bug the application by placing the break point. When the control go to " return invocation.invoke();" it throws error. java.lang. IllegalStateException: Action has already executed Thanks, Krishnaraj On Thu, Jun 12, 2014 at 8:45 PM, Dave Newton wrote: > Without knowing what&

Re: Issues in Struts2 unit testing

2014-06-12 Thread Paul Benedict
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 > > <http://struts.

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 > <h

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 <http://struts.apache.org/2.3.1.2/docs/junit-plugin.html>. The normal actions which is working fine. But I have issue when I am testing the action which has interceptor. /MainAdm

Re: Struts2 Unit Testing

2008-04-28 Thread Adam Hardy
Nils-Helge Garli Hegvik on 28/04/08 17:51, wrote: - Don't get caught up in the code coverage hysteria. Focus on writing good tests instead of how many lines and branches of code you have tested. I've no idea what level of code coverage Nils holds to be hysterical, but I wouldn't take his advic

Re: Struts2 Unit Testing

2008-04-28 Thread Nils-Helge Garli Hegvik
> > > - Don't get caught up in the code coverage hysteria. Focus on writing > > good tests instead of how many lines and branches of code you have > > tested. > > > > I've no idea what level of code coverage Nils holds to be hysterical, but I > wouldn't take his advice to mean you should avoid cod

Re: Struts2 Unit Testing

2008-04-28 Thread Adam Hardy
Nils-Helge Garli Hegvik on 28/04/08 09:02, wrote: - Don't get caught up in the code coverage hysteria. Focus on writing good tests instead of how many lines and branches of code you have tested. I've no idea what level of code coverage Nils holds to be hysterical, but I wouldn't take his advic

Re: Struts2 Unit Testing

2008-04-28 Thread Nils-Helge Garli Hegvik
This is a really big question. Just having unit tests does not necessarily mean that your code is any better. Writing good unit tests is an art (for any code, not just Struts 2), and is hard to summarize in a few lines. A good book would be a good place to start. I haven't read too many books on th

Re: Struts2 Unit Testing

2008-04-27 Thread Jeromy Evans
Frans Thamura wrote: hi there, i just have several question around unit testing for our project, cimande and we have lack of skill to to unit testing for our core (cimande), and our apps on cimande (postila, papaje, takatu, etc). anyone can share? how to start a good unit testing for Struts2

Struts2 Unit Testing

2008-04-27 Thread Frans Thamura
hi there, i just have several question around unit testing for our project, cimande and we have lack of skill to to unit testing for our core (cimande), and our apps on cimande (postila, papaje, takatu, etc). anyone can share? how to start a good unit testing for Struts2 based application, so o