Unit Testing in Java: How Tests Drive the CodeSoftware 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. - 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. |
Other editions - View all
Common terms and phrases
acceptance tests actual addition behavior catalog CatalogEditor Chapter client complex components constructor coverage cppUnit create CustomerCategory database delete Design by contract Dictionary dummy objects error example ExchangeRateProvider expected extends TestCase Extreme Programming HttpUnit implementation important incremental instance integration interaction tests IOException iteration Java JDBC JUnit Kent Beck large number ListModel logger LogServer means mock class mock objects MockNaming MyRemoteServer object-oriented package parameter PrintWriter private void problems Product ProductsListModel protected void setUp public class public interface public static public void refactoring requirements result runtime Section server servlet single test Smalltalk specific step subclass synchronization tearDown test automation test class test code test method test run test runner test suite test-driven development test-first approach test-first development testability thread throws CRMException throws Exception tion tool translation unit tests user story verify