Unit Testing Session EJBs

Discussions

EJB programming & troubleshooting: Unit Testing Session EJBs

  1. Unit Testing Session EJBs (4 messages)

    Can someone throw some light on best-practices/guidelines while writing Unit Tests for Stateless Session EJBs.

     Any guidelines such as testing Session EJBs ..
      1) which interact with DAOs
      2) which interact with EnityBeans
      3) which interact with other session beans

    Are there any examples/samples on the web for the same ?
      
    Any help is greatly appreciated.

    Thanks

    Threaded Messages (4)

  2. Unit Testing Session EJBs[ Go to top ]

    Use Cactus.

    It can test servlets, ejbs etc
  3. Unit Testing Session EJBs[ Go to top ]

    Thanks for your reply.

     I am not looking for the framework to be used for testing (like cactus,junitEE etc). What I am looking for is design guidelines while testing session beans.

    Thanks
  4. Unit Testing Session EJBs[ Go to top ]

    Floyd has a good section in his EJB patterns book about testing strategies
  5. Unit Testing Session EJBs[ Go to top ]

    Thanks,

      Chapter 7 in that books covers quite a lot of detail about Unit Testing. It gave me more clarity on my earlier questions and helped me decide my next steps.