Chapter 11. Testing Enterprise JavaBeans

 

This chapter covers

  • Testing session bean methods without the EJB container
  • Testing legacy session bean methods with MockEJB
  • Testing legacy session bean methods with Cactus
  • Testing entity beans both with and without the EJB container
  • Testing message-driven beans and JMS components
  • Verifying components deployed to a JNDI directory

Stateless session beans

Stateful session beans

Entity beans

Message-driven beans

When all else fails

11.1. Test a session bean method outside the container

11.2. Test a legacy session bean

11.3. Test a session bean method in a real container

11.4. Test a CMP entity bean

11.5. Test CMP meta data outside the container

11.6. Test a BMP entity bean

11.7. Test a message-driven bean inside the container

11.8. Test a message-driven bean outside the container

11.9. Test a legacy message-driven bean

11.10. Test a JMS message consumer without the messaging server

11.11. Test JMS message-processing logic

11.12. Test a JMS message producer

11.13. Test the content of your JNDI directory