4 Replies Latest reply on Jul 7, 2005 11:55 PM by Bill Burke

    Unit Testing

    wesleyhall Newbie

      Hello,

      What is the situation for EJB 3.0 unit testing? Are we back in cactus territory here (will cactus even work?)?

      It seems that testing outside of the app server is a goal that is getting closer with EJB 3.0 but there are a few remaining hurdles (such as the dependancy injection services).

      Anyone unit testing their EJB 3.0 applications? What works? What doesnt work?

      Thanks

      Wez Hall

        • 1. Re: Unit Testing
          Juraj Holtak Newbie

          oracle has its own EJB3 testing framework for testing outside the container, which actually is very simple

          dunno if it can be applicated to on apps written for jboss, but similar software for jboss is just a mkatter of time

          • 2. Re: Unit Testing
            Bill Burke Master

            We'll have an out-of-container EntityManager implementation soon.

            Otherwise JBoss has some nice extensions to JUnit that unfortunately we haven't documented yet.

            BUT...if you checkout CVS and look in the EJB3 project you'll see it in action. Specifically

            build-test.xml

            and

            all the tests under test/src/...

            The JBossTestCase class allows you to specify archives you want deployed before the test runs and will automatically delete them when they are finished. I've been trying to get somebody at Jboss to package and document our JUnit stuff....Looks like I'll just have to do it myself...

            • 3. Re: Unit Testing
              shin sangho Newbie

               

              "bill.burke@jboss.com" wrote:
              We'll have an out-of-container EntityManager implementation soon.


              can i get out-of-container EntityManager implementation in this time?

              • 4. Re: Unit Testing
                Bill Burke Master

                If you just want an EntityManager, go to www.hibernate.org.