[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-995) Make it so that spring can be used in Seam Integration/unit tests

Ian Hlavats (JIRA) jira-events at lists.jboss.org
Tue Mar 6 15:45:28 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-995?page=comments#action_12355214 ] 
            
Ian Hlavats commented on JBSEAM-995:
------------------------------------

+1 for me too.

One of my concerns is to keep the unit testing environment as close to the production environment as possible.

Is the Seam component that starts Spring going to be exclusive to the test environment? 

If so, could any classloading, instantiation or threading issues arise in one environment but not in the other?

For instance, will Seam dependency injection be fully operational using Spring beans in a SeamTest invocation in the same way as in production?

Will the Spring DelegatingVariableResolver be used in the unit test?

> Make it so that spring can be used in Seam Integration/unit tests
> -----------------------------------------------------------------
>
>                 Key: JBSEAM-995
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-995
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Spring
>    Affects Versions: 1.2.0.GA
>            Reporter: youngm
>             Fix For: 1.2.1.GA
>
>
> Currently there isn't really a way to use spring in Seam integration/unit tests.  Spring provides support for testing with a super class which sets up spring and seam does the same thing.
> One easy way to fix this problem is to add a Seam component that installs and sets up a Spring ApplicationContext.  That way the Seam super test class can be used and when it starts up the seam container will start up and configure spring.
> This will also help solve the slight race condition we currently have of the spring integration work being dependent upon Seam already configured.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list