O'Reilly logo

JUnit Recipes: Practical Methods for Programmer Testing by J B Rainsberger, Scott Stirling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required