Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Dimitrios Christodoulakis
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

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Musachy Barroso
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,

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Dimitrios Christodoulakis
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,

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Dimitrios Christodoulakis
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

Re: studying struts2 framework, ActionInvocation question

2009-07-24 Thread Musachy Barroso
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

Re: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Dimitrios Christodoulakis
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

RE: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Martin Gainty
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

Re: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Dimitrios Christodoulakis
: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

Re: studying struts2 framework, ActionInvocation question

2009-07-23 Thread Dave Newton
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

studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Musachy Barroso
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,

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
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

RE: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Martin Gainty
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dave Newton
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dave Newton
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

RE: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Martin Gainty
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Dimitrios Christodoulakis
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

Re: studying struts2 framework, ActionInvocation question

2009-07-22 Thread Musachy Barroso
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