List of Listings
Chapter 2. Beginning TDD
Listing 2.1. Creating a skeleton for our tests
Listing 2.2. Adding a test method
Listing 2.3. Writing the actual test
Listing 2.4. Satisfying the compiler by adding empty methods and constructors
Listing 2.5. Stubbing out methods of the Template class to make compilation succeed
Listing 2.6. Passing as quickly as possible with a hard-coded return statement
Listing 2.7. Forcing out the hard-coded return statement with another test
Listing 2.8. Making the second test pass by storing and returning the set value
Listing 2.9. Applying triangulation for the static template text
Listing 2.10. Our first attempt at handling the variable for real
Listing 2.11. Search-and-replace for handling multiple variables ...
Get Test Driven now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.