Growing Object-Oriented Software Guided by Tests
Example Code
The Worked Example (Auction Sniper)
The code for the long Auction Sniper worked example, which makes up Part III of the book, is available in a number of programming languages:
- The original Java source code from the book, with Eclipse project files.
- A Ruby port by Brian Marick.
- A Scala port by Spiros Tzavellas.
- A C# port by David Gadd.
- A Groovy port by Paul King.
- A NodeJS (JavaScript) port by Shai Yallin.
Examples from the Sustainable TDD
and Advanced
Topics
Parts
Smaller code examples from other chapters,
including Test Diagnostics
, Test Flexibility
, Testing
Persistence
, Testing Multithreaded Code
and Testing
Asynchronous Code
:
A Maybe Type
A Maybe type, as mentioned in the Flexibility chapter.Tools
You'll need Git to check out any of the code examples. The free version of IntelliJ comes with Git support as part of the standard install.
To explore the Java code you can use the Eclipse and/or IntelliJ IDEs.