Table of Contents
Discussion
Growing Object-Oriented Software, Guided by Tests
Steve
Freeman
Nat
Pryce
I. Introduction
1. What's the point of Test Driven Development?
2. Test-Driven Development with Objects
3. An Introduction to the Tools
4. Review
II. A Worked Example
5. Commissioning an Auction Sniper
6. The Walking Skeleton
7. Passing the First Test
8. Getting ready to bid
9. The Sniper makes a bid
10. The Sniper wins the Auction
11. Towards a real user interface
12. Sniping for Multiple Items
III. Examining the Process
13. Kick-Starting the Test-Driven Cycle
14. Maintaining the Test-Driven Cycle
15. Object-Oriented Design with Mock Objects
16. Building upon Third-Party Code
17. The Readability of Tests
18. Test Diagnostics
19. Listening to the Tests
20. Brittle and Flexible Tests
IV. Tricky Testing Topics
21. Constructing Complex Test Data
22. Testing Persistence
23. Time and Testing
24. Unit Testing and Threads
25. Testing Asynchronous Code
V. Appendices
A. Mock Objects from scratch
B. What Not to Mock
C. jMock 2 Cheat Sheet
Bibliography
Table of Contents
Discussion
Copyright © 2008 Steve Freeman and Nat Pryce