5.8. Parameterized mess
As professional programmers, it’s our duty to study a wide range of techniques and technologies, improving our ability to develop software. Some of these techniques are so great that we tend to overdo them, as we’re always on the lookout for even a remote chance or excuse to apply the latest and greatest tool we’ve just added to our toolbelt. In the context of unit testing and especially JUnit 4, one of the most commonly overused techniques is a pattern called parameterized test.[10]
10 Other test frameworks such as TestNG also support this pattern, but none of them are as wide spread as JUnit.
The parameterized test pattern is, in essence, a way to remove duplication from ...
Get Effective Unit Testing 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.