O'Reilly logo

Seam Framework: Experience the Evolution of Java™ EE, Second Edition by Thomas Heute, Jacob Orshalick, Michael Juntao Yuan

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

27 Integration Testing

Unit tests are useful, but they have limitations. By definition, unit tests focus on POJOs and their methods. All the mock infrastructure was there to make it possible to test those POJOs in relative isolation. That means we do not get to test whether the POJO correctly interacts with the framework itself. For instance, how do you test whether an outjected component has the correct value in Seam runtime context? How do you know that the JSF interactions and EL expressions have the desired effects? This is where we need integration testing to test live POJOs inside the Seam and JSF runtime. Unlike the white box unit tests, the integration tests treat the application from the user’s point of view.

Integration ...

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