Chapter 18. Automating unit testing using JUnit

In this chapter we discuss the value of defining a unit testing strategy and employing automated unit testing in a development environment.

We then introduce JUnit, an open source framework for creating and running unit tests, and describe how it can be incorporated into the development process using examples from our PiggyBank application.

Unit testing

The first part of this chapter is a generalized discussion about unit testing. We define what we mean by the term unit testing, and discuss the benefits and problems associated with including a unit testing strategy in a development process. Finally we describe some of the benefits you may obtain from basing your unit tests upon an existing unit testing ...

Get WebSphere Version 4 Application Development Handbook 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.