I tried to logically trace the flow within the framework and wanted to
check if my thoughts are correct here, while at the same time asking a
few more questions:
As a start I take DefaultActionProxyFactory. DefaultActionProxyFactory
instantiates DefaultActionProxy, but also gives us
You don't need to create mock objects for the framework, you onlt need
to mock the objects passed to the interceptor and invoke the
interceptor directly, unless you really want to test the interceptor
running inside struts (there is a long thread about that so i wont get
into it)
musachy
On Fri,
I plan to unit test the interceptor on its own. I am more interested
in testing its logic, not necessarily within the framework.
First step would be to mock an ActionInvocation object which is what
is passed to the Interceptor's intercept method. The action invocation
would need a mock action,
Let me correct an error below, I meant: ... I would need to first
have an invocation *context* to get the session from...
I still have difficulty grasping the idea of all the different
contexts, and their general use, but should be able to go ahead with
the unit test.
On Fri, Jul 24, 2009 at
using any of the 35,000 mocking frameworks available, that would be
pretty easy :)
musachy
On Fri, Jul 24, 2009 at 9:14 AM, Dimitrios
Christodoulakisdimi@gmail.com wrote:
I plan to unit test the interceptor on its own. I am more interested
in testing its logic, not necessarily within the
sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.
Date: Wed, 22 Jul 2009 19:49:23 -0500
Subject: Re: studying struts2 framework, ActionInvocation question
From: dimi@gmail.com
To: user@struts.apache.org
Dave Newton wrote:
Won't help
Subject: Re: studying struts2 framework, ActionInvocation question
From: dimi@gmail.com
To: user@struts.apache.org
Just another thought I had this morning.
Usually the framework is rather transparent to the struts user who
only creates actions with their corresponding results and run
:37 -0500
Subject: Re: studying struts2 framework, ActionInvocation question
From: dimi@gmail.com
To: user@struts.apache.org
Just another thought I had this morning.
Usually the framework is rather transparent to the struts user who
only creates actions with their corresponding results
Dimitrios Christodoulakis wrote:
By the way I noticed that when I downloaded the s2 source code, it
didn't come with the opensymphony packages... Does the xwork source
has to be downloaded separately?
Yes.
Dave
-
To
Hello,
According to the XWork feature description,
http://www.opensymphony.com/xwork/wikidocs/XWork%20Features.html, the
ActionInvocation represents the execution state of an action holding
the action instance and the interceptors.
I have been looking at
The best way to find out all these things is to put breakpoints in the
constructor and/or the setter methods.
musachy
On Wed, Jul 22, 2009 at 2:05 PM, Dimitrios
Christodoulakisdimi@gmail.com wrote:
Hello,
According to the XWork feature description,
Yes, I figured doing a trace and see how things happen would answer a
lot of questions. So, I'll try that.
From looking at the DefaultActionProxy constructor, it does make sense
to start with the actionproxy. The proxy gets an action invocation as
a constructor parameter. So the invocation
facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Wed, 22 Jul 2009 14:17:50 -0700
Subject: Re: studying struts2 framework, ActionInvocation question
From: musa...@gmail.com
To: user@struts.apache.org
The best way to find out
Martin Gainty wrote:
does vi have breakpoints.. am i missing something?
In this case you actually saw something nobody else did--a vi reference.
or debug
before craig and ted left (i wished they both stayed but thats another topic)
a DebuggingInterceptor was coded and is activated by
Dave Newton wrote:
Won't help track action invocation initialization, methinks.
Is there a particular way you would recommend to go about doing it
actually? I am using eclipse for my ide, but I am not sure if
breakpoints can trace through the compiled classes in the jars.
Much appreciate the
Dimitrios Christodoulakis wrote:
Dave Newton wrote:
Won't help track action invocation initialization, methinks.
Is there a particular way you would recommend to go about doing it
actually? I am using eclipse for my ide, but I am not sure if
breakpoints can trace through the compiled classes
sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Date: Wed, 22 Jul 2009 19:49:23 -0500
Subject: Re: studying struts2 framework, ActionInvocation question
From: dimi@gmail.com
To: user@struts.apache.org
Dave Newton wrote:
Won't help
contenu fourni.
Date: Wed, 22 Jul 2009 19:49:23 -0500
Subject: Re: studying struts2 framework, ActionInvocation question
From: dimi@gmail.com
To: user@struts.apache.org
Dave Newton wrote:
Won't help track action invocation initialization, methinks.
Is there a particular way you
accepter
aucune responsabilité pour le contenu fourni.
Date: Wed, 22 Jul 2009 19:49:23 -0500
Subject: Re: studying struts2 framework, ActionInvocation question
From: dimi@gmail.com
To: user@struts.apache.org
Dave Newton wrote:
Won't help track action invocation initialization, methinks
19 matches
Mail list logo