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

It has become commonplace to design enterprise applications in accordance with the Model View Controller design pattern, so our discussion generally assumes the presence of this pattern. MVC advocates separating business logic and data (the Model), screen-to-screen navigation rules (the Controller), and how to display information to the user (the View). Even though we agree that ...

Get JUnit Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.