struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurizio Cucchiara (Commented) (JIRA)" <>
Subject [jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
Date Thu, 24 Nov 2011 17:15:39 GMT


Maurizio Cucchiara commented on WW-3711:

Like I said, this is a class I built to base my tests on. If it benefits others, that's great.
If you don't think it will, no worries.
Apache is a community, those were my 2 cents, you shouldn't deem my answer as the absolute
right, I could be wrong, I could change my mind.
Further, regardless your patch become part of Struts or not, I cannot help appreciating your
willingness to contribute.
I can't find any info on StrutsSpringJUnit4TestCase
You're right, at the moment is only present in the trunk and I'm afraid that the docs are
not up to date.
I'll try to post a simple use case which do what you are looking for.
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>                 Key: WW-3711
>                 URL:
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions:
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>         Attachments:
> From the mailing list thread:
> I'm using StrutsSpringTestCase for some under-the-skin tests.
> However, I felt the need to set up my database for a test. My tests that need the database
extend from AbstractTransactionalJUnit4SpringContextTests, which makes them transactional.
> I therefore created a StrutsSpringTransactionalTestCase that merges the behaviour of
both StrutsSpringTestCase and AbstractTransactionalJUnit4SpringContextTests. I currently just
copy-pasted the relevant information from AbstractTransactionalJUnit4SpringContextTests.
> I'd like you to take a look at it and comment on whether it makes sense to include this
in Struts. If so, feel free to use my contribution.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message