Part 3. Testing components

Part 3 lets you practice the the testing knowledge acquired in parts 1 and 2 on J2EE components. You’ll see not only how to write unit tests for the whole gamut of J2EE components but also how to set up your projects and how to run and automate the tests with Ant, Maven, and Eclipse.

Chapter 9 focuses on servlets and filters. Chapter 10 will teach you how to test JSPs and taglibs. In chapter 11, you’ll learn about an aspect common to almost all applications: unit-testing code that calls the database. Chapter 12 takes you through the journey of EJB unit-testing.

After reading part 3, you’ll know how to completely unit-test full J2EE applications. You’ll also be familiar with the tradeoffs that exist and when to use one ...

Get JUnit in Action 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.