> 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
a","no-cache");
> > response.setHeader("Cache-Control","no-store");
> > response.setHeader("Expires","0");
> > response.setDateHeader("Expires",-1);
> > response.setCharacterEncoding
t;);
> > > }
> > > }
> > >
> > > else {
> > > return "login";
> > >
> > > }
> > > response.setHeader("Pragma","no-cache");
> > > response.s
eader("Pragma","no-cache");
> > response.setHeader("Cache-Control","no-store");
> > response.setHeader("Expires","0");
> > response.setDateHeader("Expires",-1);
> > response
;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.
>
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
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&
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.
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
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
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
>
> > - 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
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
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
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
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
16 matches
Mail list logo