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