4 Replies Latest reply on Jul 15, 2007 10:20 AM by gavin.king

    SEAM Tesing

    svetoslavganov

      We are trying to start using SEAM tests. Our application is using a Message Driven Bean and during the test phase of installing the components we have an exception saying that the default JMS provider could not be found.
      I guess we need to somehow mock up the JMS service. Is there a way to do that or we should provide a real JMS service?

        • 1. Re: SEAM Testing
          svetoslavganov

           

          "svetoslavganov" wrote:
          We are trying to start using SEAM tests. Our application is using a Message Driven Bean and during the test phase of installing the components we have an exception saying that the default JMS provider could not be found.
          I guess we need to somehow mock up the JMS service. Is there a way to do that or we should provide a real JMS service?


          • 2. Re: SEAM Tesing
            pmuir

            Sorry for the late reply. You should mock up the JMS service probably. You will need to wire this into your container. Ask in the EJB3 forum about this. Report back if you get this working, as it will be interesting to others I think :)

            • 3. Re: SEAM Tesing
              stu2

              While I haven't used it via EJB3, in the past I've done unit testing using ActiveMQ as a JMS provider. It can be configured to run purely in-memory, which is ideal for unit tests

              • 4. Re: SEAM Tesing
                gavin.king

                I'm pretty sure that the new Embedded JBoss has a JMS provider installed by default.