Jump to ratings and reviews
Rate this book

Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming) by Johannes Link

Rate this book
Unit Testing in JavaHow Tests Drive the CodeJohannes LinkWith contributions by Peter FröhlichForewords by Erich Gamma and Frank Westphal"This...is a practical introduction to using automated unit tests and the test-first approach in your day-to-day software development. The automation framework used...is JUnit. It is a small and simple framework for creating and managing tests. However, more is needed for successful development with unit tests. In fact, a developer has to be familiar with many different testing techniques, in particular when unit tests have to be created in the context of databases or distributed applications based on application servers. This book sheds light on these problems and is a highly welcome contribution to the field of automated unit testing."—Erich Gamma, Co-author of JUnit and Technical Director, Object Technology International"This book brings together the knowledge that a number of pioneering extreme programmers wish they had when they started applying test-first programming five years ago. If you follow down that route, you will invariably run into testing problems. Even though you are writing your tests first, you will come to halt because you won't see how to test your code. That's natural. Actually, that's the perfect time to reflect. Or to pick up this book and read what Johannes tells us."—Frank Westphal, independent trainer and consultantProgrammers understand that if errors are found at the early stage of a project they can be removed faster and at less cost than at later stages. For a variety of reasons, however, testing has lagged behind in software development practice. Now, complexdistributed systems and new software development techniques have brought a resurgent interest in testing. In this book Johannes Link gives clear guidance on how to make tests work for you, and shows how test-driven development works in practice.Features*Shows how the discovery and avoidance of software errors is a demanding and creative activity in its own right and can build confidence early in a project. *Demonstrates how automated tests can detect the unwanted effects of small changes in code within the entire system.*Discusses how testing works with persistency, concurrency, distribution, and web applications.*Includes a discussion of testing with C++ and Smalltalk.Johannes Link is project manager and software developer at andrena objects ag in Karlsruhe, Germany. He came to andrena after years of practical software engineering research at the German Cancer Research Center and the German ABB Corporate Research Center in Ladenburg, Germany. Peter Fröhlich works for Robert Bosch GmbH as a software architect focusing on process improvement, conceptual modeling, and testing.[Shelving] Java, Programming1-55860-868-0

Paperback

First published April 1, 2003

1 person is currently reading
26 people want to read

About the author

Johannes Link

7 books3 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (15%)
4 stars
10 (52%)
3 stars
4 (21%)
2 stars
2 (10%)
1 star
0 (0%)
Displaying 1 of 1 review
Author 12 books1 follower
July 31, 2010
To this day I still don't hear much about this book from other programmers, but in my opinion it's one of the best books I've ever read on unit testing. I got test-driven development for the first time after going through this book. Also good discussion of how to use mock objects, and other tricky things that come up in unit testing. Highly recommended.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.