Chapter 17. Odds and ends

This chapter covers

  • Testing file-based features without disrupting the file system
  • Testing the syntax of your tests
  • Customizing assertions for test readability
  • Testing hidden behavior

There are always a few more things that authors want to say, but cannot find the appropriate chapter in which to say them. At that point, there are essentially two options: leave those things out of the book or create a catchall chapter in which to put them. We opted for the latter. This chapter contains recipes that simply did not make their way into one of the other chapters, for one reason or another.

We do not recommend writing tests that rely heavily on the file system; but if you need to do it, then we provide a recipe that describes ...

Get JUnit Recipes 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.