Figure 5.10 actually shows the test output of the code in listing 5.11, instead of the code in 5.10. Code from 5.10 produces the same result but with the sentence "Adder test #first, #second and #sum (alt2)" instead of "Testing the Adder for #first + #second = #sum."
Listing 6.11 is missing a formatting space. It should be:
+ laptop.price + ebook.price + 3 * suite.price + 60
Section 6.3.4 opens by comparing the behavior of mocks in listings 6.13 and 6.14. The listing numbers are wrong. The text actually talks about listings 6.15 and 6.16.
Listing 6.16 is missing a closing parenthesis in the annotated line. It should be:
CreditCardProcessor creditCardSevice = Mock(CreditCardProcessor)
The text after listing 6.22 (pg 183) says that the first argument of the sale() method should be the number (price) 1500, even though all code samples check for the correct sum of 1550.
The fullCheckout() method is not shown as part of the BillableBasket class in 6.14, even though section 6.4 explicitly says it is. The method is present on gitHub. Also the text mentions listing 6.12 next to figure 6.4. It should mention 6.14 instead.
In the printed version of the book only, listing 6.25 and 6.26 (the last listings of chapter 6) contain font of two different weights, as though the original IDE colors were sent to print. While this is pleasant on the eyes, all other code uses the same font weight throughout.
Listing 7.1 is missing a formatting space. It should be:
allProducts[0].getStock() == 0
Just before listing 7.14, text talks about "Junit." It should be "JUnit" as the rest of the book.
The text mentions listing 8.11 as an example of the @AutoCleanup annotation. The correct listing is 8.14.
Listing 8.19 contains a spelling mistake. The text "contact details are kept or record" should be "contact details are kept on record."