Maurizio Cucchiara
Ignore the last rows of my email: I did not read Christian's email about the
Config annotation and I did not take a look at Gabriel's code.
A good reason to take a deep look at this too.
@Gabriel: In the meanwhile, considering your experience, if you have any
suggestion, it will be very appreciated.

On 8 August 2011 11:49, Maurizio Cucchiara <mcucchi...@apache.org> wrote:

> Hi Christian,
> thanks for your precious feedback.
> your idea makes a lot of sense indeed!
> Unfortunately the struts.xml file name is one of the strong convention of
> S2 (the file name appears inside the code) and after a very quick look it
> would not seem simple to replace.
> Anyway, I'll take a deep look at this ASAP.
>
> Maurizio Cucchiara
>
>
>
> On 8 August 2011 10:35, Christian Grobmeier <grobme...@gmail.com> wrote:
>
>> Hello Maurizio,
>>
>> > I do some change on the S2 Junit4 plugin, now it should be simpler run a
>> > test with or without spring.
>> > Could you test the latest version of the aforementioned plugin [1]?
>> > Christian, is this [2] your use case?
>> > WDYT? is more intuitive?
>>
>> not tested it yet, but yes, that is what I want to have, it looks
>> great! Thank you very much for the work!
>>
>> One question roused in me when I see this one and even the old Junit3
>> testcase. I was always wondering were
>> the struts.xml is drawn. In most cases of course I want to test the
>> struts.xml as it is used in my webapp. But sometimes i might want to
>> test something else, a special error case or maybe a result type. For
>> these cases I might want to test with a variation of my struts.xml,
>> and therefore this might be useful:
>>
>> @RunWith(SpringJUnit4ClassRunner.class)
>> @ContextConfiguration(locations = {"your-application-context.xml"})
>> @StrutsContextConfiguration(locations = {"struts-test.xml"})
>> public class YourActionIntegrationTest extends
>> StrutsSpringJUnit4TestCase<YourAction> {
>>
>> not sure if my idea makes sense, but wanted to bring it to discussion.
>>
>> Cheers!
>> Christian
>>
>> >
>> > [1]
>> >
>> https://builds.apache.org/job/Struts2/334/org.apache.struts$struts2-junit-plugin/
>> > [2]
>> >
>> https://issues.apache.org/jira/browse/WW-3667?focusedCommentId=13079421&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13079421
>> > On 3 August 2011 20:16, Christian Grobmeier <grobme...@gmail.com>
>> wrote:
>> >
>> >> 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 Wed, Aug 3, 2011 at 7:54 PM, Gabriel Belingueres
>> >> <belingue...@gmail.com> wrote:
>> >> > 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 actions and interceptors. If you want to
>> >> > test either your actions or interceptors in isolation, you may not
>> >> > need this.
>> >> >
>> >> > Funny enough, I'm currently in the process of open sourcing our
>> Struts
>> >> > 2 integration testing utility, which is based on StrutsJUnit4TestCase
>> >> > (only tested it on Struts 2.2.3 I'm afraid), so if you can hold on a
>> >> > few minutes, you may download it from google code.
>> >> >
>> >> > Regards,
>> >> > Gabriel
>> >> >
>> >> > 2011/8/3 Christian Grobmeier <grobme...@gmail.com>:
>> >> >> 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
>> >> >> well. Now it seems I have to give the class a web.xml - how?
>> >> >>
>> >> >> Thanks in advance
>> >> >>
>> >> >> Christian
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> > For additional commands, e-mail: user-h...@struts.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> http://www.grobmeier.de
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> Maurizio Cucchiara
>> >
>>
>>
>>
>> --
>> http://www.grobmeier.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>

Reply via email to