Summary

As you already know, inheriting a legacy codebase might be a daunting task.

We stated that legacy code is code without tests, so the first step in dealing with it is to create tests to help you preserve the same functionality during the process. Unfortunately, creating tests is not always as easy as it sounds. Many times, legacy code is tightly coupled and presents other symptoms that show a poor design or at least a lack of interest in the code's quality in the past. Worry not, you can perform some of the tedious tasks step by step, as shown in http://martinfowler.com/bliki/ParallelChange.html. Moreover, it is also well known that software development is a learning process. Working code is a side-effect. Therefore, the most important part ...

Get Test-Driven Java Development 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.