How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
Hello all, today I tried to figure out how one can use StrutsJUnit4TestCase. I am currently puzzled. I found docs for the older implementation for Junit3 of course, but nothing on the StrutsJUnit4TestCase class. Any pointers? With the old stuff i simply did: this.executeAction() and all was

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Maurizio Cucchiara
Hi Christian, SJ4TC is /relatively/ young [1] and so there are no many documented use cases on the web. Anyway it would not be difficult to add the executeAction method. I'm going to open a new issue. [1] https://issues.apache.org/jira/browse/WW-3403 On 3 August 2011 13:56, Christian Grobmeier

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Maurizio Cucchiara
Opened https://issues.apache.org/jira/browse/WW-3667 On 3 August 2011 18:07, Maurizio Cucchiara maurizio.cucchi...@gmail.comwrote: Hi Christian, SJ4TC is /relatively/ young [1] and so there are no many documented use cases on the web. Anyway it would not be difficult to add the executeAction

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
Thanks Maurizio. One of my key problems is the fact that there seems to be a problem with the spring integration when I extend this implementation. It says, i need to add the ContextListener to the web.xml. I was not able to figure out how I could enable my applicationContext. Finally I left out

Re: [S1] Validator configuration error [bump]

2011-08-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 7/19/2011 5:59 PM, Dave Newton wrote: If it works, I wouldn't worry about it. I'm not sure if anybody is planning any further 1.x releases, to be honest; maybe if a patch is filed against the ticket someone would apply it, but I'm

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Gabriel Belingueres
Hi, StrutsJUnit4TestCase is really tricky. I found few pointers in the web. I'm currently using it successfully for my modest testing requirements, but you don't need to provide a web.xml file. When I say integration testing utility, I mean testing a full blown interceptor stack with your

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Christian Grobmeier
Hi, at the moment I found out to test without that class. Not really a full test, but it works for my needs at the moment. Therefore I can wait until you have pushed your code to google. Please ping this list once it is done - guess some others ahve an interest in it too :-) Cheers Christian On

Re: How to StrutsJUnit4TestCase?

2011-08-03 Thread Gabriel Belingueres
There you go: http://code.google.com/p/struts2-junit/ Regards, Gabriel 2011/8/3 Christian Grobmeier grobme...@gmail.com: Hi, at the moment I found out to test without that class. Not really a full test, but it works for my needs at the moment. Therefore I can wait until you have pushed

[ANN] struts2-junit utility classes for testing with JUnit 4

2011-08-03 Thread Gabriel Belingueres
Hi, I'd like to introduce this simple library, which is based on the StrutsJUnit4TestCase class that comes with the Struts 2 distribution. Usage This library is primarily intended for integration tests, meaning you can test your actions and interceptors against a complete struts interceptor