Unit Testing in Java: How Tests Drive the Code
Software testing is indispensable and is one of the most discussed topics in software development today. Many companies address this issue by assigning a dedicated software testing phase towards the end of their development cycle. However, quality cannot be tested into a buggy application. Early and continuous unit testing has been shown to be crucial for high quality software and low defect rates. Yet current books on testing ignore the developer's point of view and give little guidance on how to bring the overwhelming amount of testing theory into practice. Unit Testing in Java represents a practical introduction to unit testing for software developers. It introduces the basic test-first approach and then discusses a large number of special issues and problem cases. The book instructs developers through each step and motivates them to explore further.
Other editions - View all
actual addition allows application approach assert Equals assert True assertEquals automated behavior benefit catalog changes Chapter client complex components correct create database Delete depend described Dictionary discussed dummy editor effort empty error example Exception execution existing expected extends fail Figure final framework functionality idea implementation important includes increment instance integration interface Java JUnit language List logger look manager means method mock objects normally package persistence possible problems Product provider public class public void reader reason refactoring request requirements response result separate server servlet shows simple single specific static step String test class test suite test-first TestCase things thread throws throws Exception tion tool translation unit tests verify write