You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Christian Grobmeier <gr...@gmail.com> on 2013/03/17 09:33:55 UTC

Support for Convention-Plugin through the Junit-Plugin

hi,

today i did some improvements on the Junit plugin and saw this issue:
https://issues.apache.org/jira/browse/WW-3778

It says, it would be good to have the convention plugin supported by
the junit plugin. I thought this should be the case already and did
some testing on my local box:

- added the convention plugin to my pom
- created content/hello-world.jsp in resources
- create a mini test case which just does:
String output = executeAction("/hello-world");

I have expected that all my other test cases will fail, since my guess
was all the urls have changed with the addition of the convention
plugin. Actually this was not the case and everything worked well,
except of course the convention-testcase.

Now I suspect there is more work to be done, and something in this class:
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java?view=markup

should be changed to make it work, esp in the initDispatcherParams or
initDispatcher method. Unfortunately a brief look into the Convention
plugin didn't teach me how it actually works.

Does anybody have a pointer for me where to start?

Cheers
Christian

--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/22 Christian Grobmeier <gr...@gmail.com>:
> Sorry for that. I will do it in future. Thanks for the hint!

No problem :-)


Cheers
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
On Fri, Mar 22, 2013 at 8:55 AM, Lukasz Lenart <lu...@apache.org> wrote:
> 2013/3/20 Christian Grobmeier <gr...@gmail.com>:
>> worked like a charm, thanks!
>
> I forget to mention about one thing, please add issue id in front of
> commit message, thus will allow Jenkins to comment connected issue
> after build and allow to check what was the reason for change, eg.:
>
> "WW-3778 Adds missing version tag"

Sorry for that. I will do it in future. Thanks for the hint!

Christian


>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/20 Christian Grobmeier <gr...@gmail.com>:
> worked like a charm, thanks!

I forget to mention about one thing, please add issue id in front of
commit message, thus will allow Jenkins to comment connected issue
after build and allow to check what was the reason for change, eg.:

"WW-3778 Adds missing version tag"


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
worked like a charm, thanks!

On Wed, Mar 20, 2013 at 9:38 AM, Lukasz Lenart <lu...@apache.org> wrote:
> 2013/3/20 Christian Grobmeier <gr...@gmail.com>:
>> Ups, seems i can't update the issue (lack of permissions). If you can
>> fix me, then I can fix the issue ;-)
>
> Try now
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>



-- 
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/20 Christian Grobmeier <gr...@gmail.com>:
> Ups, seems i can't update the issue (lack of permissions). If you can
> fix me, then I can fix the issue ;-)

Try now


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
On Wed, Mar 20, 2013 at 9:29 AM, Lukasz Lenart <lu...@apache.org> wrote:
> 2013/3/20 Christian Grobmeier <gr...@gmail.com>:
>> thanks! I just committed it, feel free to nag ;-)
>> What is the process, can i go ahead and simply close this issue?
>> https://issues.apache.org/jira/browse/WW-3778
>> Or is any other action to be taken?
>
> No, just mark it Fixed, they will be Closed with new release.

Ups, seems i can't update the issue (lack of permissions). If you can
fix me, then I can fix the issue ;-)

>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/20 Christian Grobmeier <gr...@gmail.com>:
> thanks! I just committed it, feel free to nag ;-)
> What is the process, can i go ahead and simply close this issue?
> https://issues.apache.org/jira/browse/WW-3778
> Or is any other action to be taken?

No, just mark it Fixed, they will be Closed with new release.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
On Tue, Mar 19, 2013 at 3:47 PM, Lukasz Lenart <lu...@apache.org> wrote:
> 2013/3/18 Christian Grobmeier <gr...@gmail.com>:
>> One problem I face is now that it seems as view-success.jsp is not
>> rendered. When I read the output of this file its always "". I have no
>> idea why it's like that at the moment.
>> I looked into StrutsJUnit4TestCase (line 248) and it seems
>> struts-default.xml is always loaded. So I would expect there are all
>> components there to render it. I already tried ftl, which is used
>> often by teh other testcases, no success.
>
> There was never an option to grab and rendered output, but maybe it
> would be useful, take a look on FreeMarkerResultTest, especially on
> setUp() method, maybe doing the same will solve your problem.

hm not sure if it is actually rendering, but I think it does. If you
look into StrutsJUnit4TestCaseTest it does an execute, which finally
results in returning the input of template-2.ftl. This does not work
with the convention plugin atm. Hopefully I will find out, I will also
look at your reference.

>> That said, besides the return value of executeAction is not useful,
>> this already works:
>>
>> public class StrutsJUnit4ConventionTestCaseTest extends
>> StrutsJUnit4TestCase<ViewAction> {
>> ...
>> ViewAction action = this.getAction();
>> // assert action members
>
> Good job :-)

thanks! I just committed it, feel free to nag ;-)
What is the process, can i go ahead and simply close this issue?
https://issues.apache.org/jira/browse/WW-3778
Or is any other action to be taken?

Cheers


>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/18 Christian Grobmeier <gr...@gmail.com>:
> I debugged a good while and figured out how it can be done, basically.
>
> The trick is, you give it a special config:
>
> @Override
>     protected String getConfigPath() {
>         return "struts-convention.xml";
>     }
>
> This config above contains more or less everything which is also
> contained in struts-plugin.xml of the convention plugin. Unfortunately
> I didn't find a way to include the original file or how to use
> "convention-default". It seems it isn't loaded and I need to push it
> manually, which i did.
>
> I could create an ViewAction which is then forwarded to
> view-success.jsp, as desired.
>
> One problem I face is now that it seems as view-success.jsp is not
> rendered. When I read the output of this file its always "". I have no
> idea why it's like that at the moment.
> I looked into StrutsJUnit4TestCase (line 248) and it seems
> struts-default.xml is always loaded. So I would expect there are all
> components there to render it. I already tried ftl, which is used
> often by teh other testcases, no success.

There was never an option to grab and rendered output, but maybe it
would be useful, take a look on FreeMarkerResultTest, especially on
setUp() method, maybe doing the same will solve your problem.

> That said, besides the return value of executeAction is not useful,
> this already works:
>
> public class StrutsJUnit4ConventionTestCaseTest extends
> StrutsJUnit4TestCase<ViewAction> {
> ...
> ViewAction action = this.getAction();
> // assert action members

Good job :-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
I debugged a good while and figured out how it can be done, basically.

The trick is, you give it a special config:

@Override
    protected String getConfigPath() {
        return "struts-convention.xml";
    }

This config above contains more or less everything which is also
contained in struts-plugin.xml of the convention plugin. Unfortunately
I didn't find a way to include the original file or how to use
"convention-default". It seems it isn't loaded and I need to push it
manually, which i did.

I could create an ViewAction which is then forwarded to
view-success.jsp, as desired.

One problem I face is now that it seems as view-success.jsp is not
rendered. When I read the output of this file its always "". I have no
idea why it's like that at the moment.
I looked into StrutsJUnit4TestCase (line 248) and it seems
struts-default.xml is always loaded. So I would expect there are all
components there to render it. I already tried ftl, which is used
often by teh other testcases, no success.

That said, besides the return value of executeAction is not useful,
this already works:

public class StrutsJUnit4ConventionTestCaseTest extends
StrutsJUnit4TestCase<ViewAction> {
...
ViewAction action = this.getAction();
// assert action members

Cheers
Christian






On Mon, Mar 18, 2013 at 2:25 PM, Christian Grobmeier
<gr...@gmail.com> wrote:
> Interesting. Thanks Martin and Lukasz, maybe i have more luck with
> these hints. I will let you know :-)
>
> Christian
>
> 2013/3/17 Martin Gainty <mg...@hotmail.com>:
>> Christian
>>
>> check out MockStrutsTestCase
>> http://strutstestcase.sourceforge.net/api/servletunit/struts/MockStrutsTestCase.html#setConfigFile(java.lang.String)
>> Martin ______________________________________________
>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>
>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>>
>>  > From: lukaszlenart@apache.org
>>> Date: Sun, 17 Mar 2013 20:21:39 +0100
>>> Subject: Re: Support for Convention-Plugin through the Junit-Plugin
>>> To: dev@struts.apache.org
>>>
>>> 2013/3/17 Christian Grobmeier <gr...@gmail.com>:
>>> > hm, ok. I have seen the plugin should automatically bring in these two
>>> > providers.
>>> > But when I call configurationManager.getContainerProviders() they are
>>> > not in. My guess is this is the problem. I will look a bit further
>>> > into it, more pointers are welcome :-)
>>>
>>> The StrutsJunitTestCase doesn't load struts-default.xml or any other
>>> .xml configuration file.
>>>
>>>
>>> Regards
>>> --
>>> Łukasz
>>> + 48 606 323 122 http://www.lenart.org.pl/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: dev-help@struts.apache.org
>>>
>>
>
>
>
> --
> http://www.grobmeier.de
> https://www.timeandbill.de



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
Interesting. Thanks Martin and Lukasz, maybe i have more luck with
these hints. I will let you know :-)

Christian

2013/3/17 Martin Gainty <mg...@hotmail.com>:
> Christian
>
> check out MockStrutsTestCase
> http://strutstestcase.sourceforge.net/api/servletunit/struts/MockStrutsTestCase.html#setConfigFile(java.lang.String)
> Martin ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>  > From: lukaszlenart@apache.org
>> Date: Sun, 17 Mar 2013 20:21:39 +0100
>> Subject: Re: Support for Convention-Plugin through the Junit-Plugin
>> To: dev@struts.apache.org
>>
>> 2013/3/17 Christian Grobmeier <gr...@gmail.com>:
>> > hm, ok. I have seen the plugin should automatically bring in these two
>> > providers.
>> > But when I call configurationManager.getContainerProviders() they are
>> > not in. My guess is this is the problem. I will look a bit further
>> > into it, more pointers are welcome :-)
>>
>> The StrutsJunitTestCase doesn't load struts-default.xml or any other
>> .xml configuration file.
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


RE: Support for Convention-Plugin through the Junit-Plugin

Posted by Martin Gainty <mg...@hotmail.com>.
Christian

check out MockStrutsTestCase
http://strutstestcase.sourceforge.net/api/servletunit/struts/MockStrutsTestCase.html#setConfigFile(java.lang.String)
Martin ______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 > From: lukaszlenart@apache.org
> Date: Sun, 17 Mar 2013 20:21:39 +0100
> Subject: Re: Support for Convention-Plugin through the Junit-Plugin
> To: dev@struts.apache.org
> 
> 2013/3/17 Christian Grobmeier <gr...@gmail.com>:
> > hm, ok. I have seen the plugin should automatically bring in these two
> > providers.
> > But when I call configurationManager.getContainerProviders() they are
> > not in. My guess is this is the problem. I will look a bit further
> > into it, more pointers are welcome :-)
> 
> The StrutsJunitTestCase doesn't load struts-default.xml or any other
> .xml configuration file.
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
 		 	   		  

Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/17 Christian Grobmeier <gr...@gmail.com>:
> hm, ok. I have seen the plugin should automatically bring in these two
> providers.
> But when I call configurationManager.getContainerProviders() they are
> not in. My guess is this is the problem. I will look a bit further
> into it, more pointers are welcome :-)

The StrutsJunitTestCase doesn't load struts-default.xml or any other
.xml configuration file.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Christian Grobmeier <gr...@gmail.com>.
On Sun, Mar 17, 2013 at 1:50 PM, Lukasz Lenart <lu...@apache.org> wrote:
> 2013/3/17 Christian Grobmeier <gr...@gmail.com>:
>> It says, it would be good to have the convention plugin supported by
>> the junit plugin. I thought this should be the case already and did
>> some testing on my local box:
>>
>> - added the convention plugin to my pom
>> - created content/hello-world.jsp in resources
>> - create a mini test case which just does:
>> String output = executeAction("/hello-world");
>>
>> I have expected that all my other test cases will fail, since my guess
>> was all the urls have changed with the addition of the convention
>> plugin. Actually this was not the case and everything worked well,
>> except of course the convention-testcase.
>
> No they should not, as urls should remains as is, did you try to use
> "/hello-world.action" instead? No extension has nothing to do with the
> Convention plugin - you can have the same with xml based configuration
> just define struts.action.extension.

I have meanwhile tried it with .action, but no success. Actually I
thought the Convention would match (i just looked at the table int he
docs: http://struts.apache.org/release/2.3.x/docs/convention-plugin.html
)

>
>> Now I suspect there is more work to be done, and something in this class:
>> http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java?view=markup
>>
>> should be changed to make it work, esp in the initDispatcherParams or
>> initDispatcher method. Unfortunately a brief look into the Convention
>> plugin didn't teach me how it actually works.
>>
>> Does anybody have a pointer for me where to start?
>
> The Convention plugin is responsible for a configuration, so basically
> what it does is to scan a classpath to look for actions based on
> defined constants. It's addition to normal xml based configuration,
> where the Convention plugin will just add configuration of discovered
> actions.
>
> I have no idea where to start, but you can check
> PackageBasedActionConfigBuilderTest. Basically
> ClasspathConfigurationProvider and ClasspathPackageProvider have to be
> included in configuration building process.

hm, ok. I have seen the plugin should automatically bring in these two
providers.
But when I call configurationManager.getContainerProviders() they are
not in. My guess is this is the problem. I will look a bit further
into it, more pointers are welcome :-)

Cheers

>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Support for Convention-Plugin through the Junit-Plugin

Posted by Lukasz Lenart <lu...@apache.org>.
2013/3/17 Christian Grobmeier <gr...@gmail.com>:
> It says, it would be good to have the convention plugin supported by
> the junit plugin. I thought this should be the case already and did
> some testing on my local box:
>
> - added the convention plugin to my pom
> - created content/hello-world.jsp in resources
> - create a mini test case which just does:
> String output = executeAction("/hello-world");
>
> I have expected that all my other test cases will fail, since my guess
> was all the urls have changed with the addition of the convention
> plugin. Actually this was not the case and everything worked well,
> except of course the convention-testcase.

No they should not, as urls should remains as is, did you try to use
"/hello-world.action" instead? No extension has nothing to do with the
Convention plugin - you can have the same with xml based configuration
just define struts.action.extension.

> Now I suspect there is more work to be done, and something in this class:
> http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java?view=markup
>
> should be changed to make it work, esp in the initDispatcherParams or
> initDispatcher method. Unfortunately a brief look into the Convention
> plugin didn't teach me how it actually works.
>
> Does anybody have a pointer for me where to start?

The Convention plugin is responsible for a configuration, so basically
what it does is to scan a classpath to look for actions based on
defined constants. It's addition to normal xml based configuration,
where the Convention plugin will just add configuration of discovered
actions.

I have no idea where to start, but you can check
PackageBasedActionConfigBuilderTest. Basically
ClasspathConfigurationProvider and ClasspathPackageProvider have to be
included in configuration building process.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org