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.
|
Contents
Chapter | 6 |
Chapter | 11 |
Chapter | 15 |
Automating Unit Tests | 23 |
Appendix | 27 |
Basic Steps of the TestFirst Approach | 39 |
B 3 | 55 |
Test Ideas and Heuristics | 65 |
Glossary | 68 |
Chapter 7 | 75 |
Bibliography and List of References | 90 |
The Inner Life of a Test Framework | 91 |
assert Has Been a Keyword Since JDK 1 4 Isnt There a Conflict with JUnits | 93 |
1 | 143 |
Other editions - View all
Common terms and phrases
addition AllTests application code assert Auto automation behavior black-box tests Buch-book\n changes Chapter constructor correct created Design by Contract dict.addTranslation Buch dict.isEmpty Dictionary class DictionaryParser DictionaryTest drawbacks dummy objects empty equivalence class error EuroCalculator example exception ExchangeRateProvider extends TestCase Extreme Programming failure fixture framework functionality germanWord implementation input instance interaction tests Java JUnit junit.framework Kent Beck large number logger LogServer look meaningful mock class mock objects MockLogger object-oriented package pair programming parameter parser parser.nextTranslation PrintWriter public class Dictionary public static public void public void test reader refactoring requirements runtime Section setUp single test singleton specific String dictText String german StringBuffer buffer StringBufferTest subclass suite.addTest test automation test class test code test method test results test runner test runs test suite test-driven development test-first approach test-first development TestRunner this.assertNext Translation throws IOException tion typical unit tests verify