You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Miguel Almeida (Created) (JIRA)" <ji...@apache.org> on 2011/11/24 13:58:40 UTC

[jira] [Created] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
------------------------------------------------------------------------------------------

                 Key: WW-3711
                 URL: https://issues.apache.org/jira/browse/WW-3711
             Project: Struts 2
          Issue Type: New Feature
          Components: Unit Tests
    Affects Versions: 2.2.3.1
            Reporter: Miguel Almeida
         Attachments: StrutsSpringTransactionalAbstractTest.java

>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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Rene Gielen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166835#comment-13166835 ] 

Rene Gielen commented on WW-3711:
---------------------------------

While I see that this class might be helpful to you, I don't see this as a general usecase that should be addressed on the Struts 2 framework level.
Also - from an architectural standpoint - mixing Struts Actions with database functionality might not be the best choice. Instead, one might want to have database dependent functionality in DAOs and or Services which then get injected in Actions.
                
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>             Fix For: 2.5
>
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3711:
------------------------------

    Fix Version/s: 3.x
    
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>             Fix For: 3.x
>
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Miguel Almeida (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Miguel Almeida updated WW-3711:
-------------------------------

    Attachment: StrutsSpringTransactionalAbstractTest.java
    
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>              Labels: spring, struts2, test-patch
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156680#comment-13156680 ] 

Maurizio Cucchiara commented on WW-3711:
----------------------------------------

Hi Miguel,
I'm just a little doubtful about your patch:
* there are many way to achieve what you described before (your is one of those and it could be a matter of taste)
* you used Spring SimpleJdbcTemplate, but many users might use HibernateTemplate, JPATemplate, or whatever.
* you used StrutsSpringTestCase which basically is based on Junit3, there is a [StrutsSpringJUnit4TestCase|http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsSpringJUnit4TestCase.java] class which allows to use Spring annotations.
                
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>              Labels: spring, struts2, test-patch
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Maurizio Cucchiara (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurizio Cucchiara updated WW-3711:
-----------------------------------

    Priority: Minor  (was: Major)

Aside from that I don't think is a "major priority"
                
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Miguel Almeida (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166843#comment-13166843 ] 

Miguel Almeida commented on WW-3711:
------------------------------------

{quote}
Also - from an architectural standpoint - mixing Struts Actions with database functionality might not be the best choice. Instead, one might want to have database dependent functionality in DAOs and or Services which then get injected in Actions.
{quote}

The main usage of this class is BDD/Specification by example/integration tests (pick your poison). While you can - and should have DAOs and Services and use the Dependency Injection pattern, if you want to test at this level you'll probably use the database too.

Similarly, every other test case already included (StrutsTestCase, StrutsSpringTestCase) is already an integration test: at unit test level, you should only be hitting the Action and not any other struts internals. In the end, you probably should need both: unit tests that only touch your action and don't need to extend any of this Test classes and more integrated tests for the higher level tests where these classes are useful.
                
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>             Fix For: 2.5
>
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Rene Gielen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166869#comment-13166869 ] 

Rene Gielen commented on WW-3711:
---------------------------------

Don't get me wrong, I see integration testing as highly desirable.

Having Spring support in Struts tests is in the domain of the Spring plugin. Spring is a core glue framework below your S2 app, so for real integration testing you want to use it in your tests as well.

Your persistence choice is something different IMO - it exceeds the domain of both S2 and S2-Spring plugin. If we started to include more specific utilities like the one you're suggesting, we would end up having to offer any permutation of technologies around - StrutsSpringHibernate, StrutsSpringJPA, StrutsSpringMyBatis, StrutsGuiceHibernate, ..., StrutsCDIHibernate, ... etc.

So again, while I see this is a really useful utility to you and maybe others, I think it is beyond the scope of what Struts 2 would want to provide out of the box. So I don't think we would want to include it into the S2 distribution.
                
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>             Fix For: 2.5
>
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Miguel Almeida (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166843#comment-13166843 ] 

Miguel Almeida edited comment on WW-3711 at 12/10/11 1:23 PM:
--------------------------------------------------------------

{quote}
Also - from an architectural standpoint - mixing Struts Actions with database functionality might not be the best choice. Instead, one might want to have database dependent functionality in DAOs and or Services which then get injected in Actions.
{quote}

The main usage of this class is BDD/Specification by example/integration tests (pick your poison). While you can - and should have - DAOs and Services and use the Dependency Injection pattern, if you want to test at a higher level you'll probably use the database too.

Similarly, every other test case already included (StrutsTestCase, StrutsSpringTestCase) is already an integration test: at unit test level, you should only be hitting the Action Pojo and not any other struts internals. 

In the end, you probably should need both: unit tests that only touch your action and don't need to extend any of this Test classes and more integrated tests for the higher level tests where these classes are useful (and where this, in particular, might be handy).
                
      was (Author: wild_oscar):
    {quote}
Also - from an architectural standpoint - mixing Struts Actions with database functionality might not be the best choice. Instead, one might want to have database dependent functionality in DAOs and or Services which then get injected in Actions.
{quote}

The main usage of this class is BDD/Specification by example/integration tests (pick your poison). While you can - and should have DAOs and Services and use the Dependency Injection pattern, if you want to test at this level you'll probably use the database too.

Similarly, every other test case already included (StrutsTestCase, StrutsSpringTestCase) is already an integration test: at unit test level, you should only be hitting the Action and not any other struts internals. In the end, you probably should need both: unit tests that only touch your action and don't need to extend any of this Test classes and more integrated tests for the higher level tests where these classes are useful.
                  
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>             Fix For: 2.5
>
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Miguel Almeida (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156809#comment-13156809 ] 

Miguel Almeida commented on WW-3711:
------------------------------------

Hey Maurizio,

Replying to your comments:
    * there are many way to achieve what you described before (your is one of those and it could be a matter of taste)

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.

    * you used Spring SimpleJdbcTemplate, but many users might use HibernateTemplate, JPATemplate, or whatever.

I pasted that from AbstractTransactionalJUnit4SpringContextTests, but I see I might not even need that, so I believe I can take that part out

    * you used StrutsSpringTestCase which basically is based on Junit3, there is a StrutsSpringJUnit4TestCase class which allows to use Spring annotations.
I can't find any info on StrutsSpringJUnit4TestCase in either https://cwiki.apache.org/WW/junit-plugin.html, in maven search (http://www.jarvana.com/jarvana/search?search_type=class&java_class=StrutsSpringJUnit4TestCase ) nor in my project (running 2.2.3). Where is that class in?

                
> StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase
> ------------------------------------------------------------------------------------------
>
>                 Key: WW-3711
>                 URL: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3711) StrutsSpringTransactionalTestCase - adding transactional behaviour to StrutsSpringTestCase

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156829#comment-13156829 ] 

Maurizio Cucchiara commented on WW-3711:
----------------------------------------

{quote}
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.
{quote}
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.
{quote}
I can't find any info on StrutsSpringJUnit4TestCase
{quote}
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: https://issues.apache.org/jira/browse/WW-3711
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Unit Tests
>    Affects Versions: 2.2.3.1
>            Reporter: Miguel Almeida
>            Priority: Minor
>              Labels: spring, struts2, test-patch
>         Attachments: StrutsSpringTransactionalAbstractTest.java
>
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira