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-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to