3 Replies Latest reply on Aug 31, 2008 11:52 AM by pmuir

    Seam integration testing offering

    gjeudy

      Hi,


      Are there any plans to improve Seam integration testing support ? I tried to setup jboss embedded to run Seam tests with no success, I understand it is quite hard to do as the classpath is extremely sensitive. I also understand the current way of launching such tests is only through ant where you can have a very controlled classpath.


      What I would like is the ability to run an individual integration test within EclipseIDE but this is hardly possible today due to the brittle jboss embedded setup.


      The alternative to jboss embedded is integration testing in a real jboss environment.


      Since I know little in this area would others share with their solution? I'm looking at this alternative since the current jboss embedded offering is not viable for me.


      Thanks,

        • 1. Re: Seam integration testing offering
          javacoryd

          Hello,


          We are using Seam 2.0.1 GA on our project and have been very happy with the integration testing in Seam.  We have 2500+ tests with 60% of them being integration tests.  You are correct when you talk about the classpath being picky.  From our experience, you need to have these 3 jars at the top of the classpath (in this order):


          hibernate-all.jar
          jboss-embedded-all.jar
          thirdparty-all.jar


          Also, at least with 2.0.1 GA, Seam wants to re-bootstrap the container with each test class.  I believe this has been fixed in later releases, but we put in a fix for this in a subclass of SeamTest for this.


          Lastly, as more and more Seam components were added we were randomly getting a ConcurrentModificationException in the container.  You need to apply a patch from here to the container:


          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=113365


          Cory.

          • 2. Re: Seam integration testing offering
            gjeudy

            Thanks alot for your reply Cory, I will try your recommendations and let you know the outcome.

            • 3. Re: Seam integration testing offering
              pmuir

              You could give JSFUnit a try as an alternative to embedded.