O'Reilly logo

Testing with JUnit by Frank Appel

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

Employing custom solutions

Given the variety of possible applications, it's no wonder that there are custom rule solutions for both routine and fancy demands. Because of this, the last section of the chapter will dwell on noteworthy third-party implementations for each area.

Working with system settings

A source of constant burden is environment-specific functionality and state handling. Most of it is made accessible via the java.lang.System class. Setting and resetting system properties, capturing system output and so on produces quite a bit of overhead of boilerplate code. Luckily, a third-party utility called System Rules, [SYSRUL], comes to the rescue. It encapsulates the redundancies and supplies several rules to accomplish the various tasks ...

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