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:
iloveyouboss/3/test/iloveyouboss/ScoreCollectionTest.java | |
| public class ScoreCollectionTest { |
| @Test |
| public void test() { |
| } |
| } |
You’ll find that snippet of code in the ScoreCollectionTest.java 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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.