3 Replies Latest reply on Jun 9, 2004 11:11 AM by rogerday

    jboss and junit testing

    rogerday

      Hi,

      I've looked at the docs and the CVS, but I can't find answers to the following question:

      Whats' the best way to integrate a Jboss App Server with a Junit test suite?

      I can think of three options:

      1. Run a Jboss AppServer continually against a test deployment.
      2. Run a Jboss Appserver every time a test is run (and if so, how? Do you run a script from the java exec command?)
      3. Run a JBoss Server from a Ant script using specialist extensions.

      There may, of course, be other ways. I'm looking for a model to build my tests around.

      TIA

      Roger

        • 1. Re: jboss and junit testing
          darranl

          Have you looked at Cactus?

          • 2. Re: jboss and junit testing
            rogerday

             

            "darranl" wrote:
            Have you looked at Cactus?


            I have now, thanks. However, it doesn't do Message Driven Beans - which is precisely what I'm trying to do. I notice the webpage says that it's a "medium term goal" to support MDB, so I think I'm out of luck with cactus unless you know different.

            Cheers,

            Roger

            • 3. Re: jboss and junit testing
              rogerday

               

              "rogerday" wrote:
              "darranl" wrote:
              Have you looked at Cactus?


              I have now, thanks. However, it doesn't do Message Driven Beans - which is precisely what I'm trying to do. I notice the webpage says that it's a "medium term goal" to support MDB, so I think I'm out of luck with cactus unless you know different.

              Cheers,

              Roger


              Apparently, according to this thread: http://www.mail-archive.com/cactus-user@jakarta.apache.org/msg05399.html
              I don't need cactus but I could either use MockObjects or do the whole thing myself in a MockObject Style. Mind you, doing it in Cactus would keep it line with the other tests I'm planning for the frontend of this app. I'll retro-fit if a JMSRedirector ever becomes available.

              Roger