List of Listings
Chapter 2. In search of good
Listing 2.1. Code doesn’t have to be complex to lack readability
Chapter 3. Test doubles
Listing 3.1. Code under test (Car) and its collaborators (Engine and Route)
Listing 3.2. Sometimes code’s behavior is inherently nondeterministic
Listing 3.3. A test double can deliver the inside scoop
Listing 3.4. Fake objects aren’t necessarily difficult to implement
Listing 3.5. Case for a test spy—the arguments don’t provide enough intel for a test
Listing 3.6. Test spies are often simple to implement
Listing 3.7. JMock lets you configure mock objects at runtime
Chapter 4. Readability
Get Effective Unit Testing 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.