O'Reilly logo

JUnit Recipes: Practical Methods for Programmer Testing by J B Rainsberger, Scott Stirling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required