Code and Online Resources

You’ll find gobs of Java code throughout the book, almost all of which is included in the source distribution. You can download the source from the official Pragmatic Unit Testing book page.[6]

Code snippets that can be found as part of the distribution appear with the path and filename immediately above the chunk of code. For example:

public​ ​class​ ScoreCollectionTest {
public​ ​void​ test() {

You’ll find that snippet of code in the file in the source distribution, in the iloveyouboss/3/test/iloveyouboss directory. If you’re reading this as an ebook, you can click the filename header to go directly to the code. ...

Get Pragmatic Unit Testing in Java 8 with JUnit now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.