Chapter 4. Java EE Testing

Having explored some of the issues surrounding enterprise testing in general, it is time to turn our attention to testing Java EE components. Testing Java EE applications imposes unique constraints on us. Ultimately, most of the issues boil down to the fact that Java EE applications run inside a container. The container provides a variety of services, as well as a rich environment for components. The container also handles component lifecycles and initialization.

At first glance, these issues make the idea of testing EE applications difficult at best. None of the current crop of containers are designed to be embedded, and even if they were, the start-up times are often prohibitive. Not to mention that even if it were ...

Get Next Generation Java™ Testing: TestNG and Advanced Concepts 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.