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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.