Working With JUnitParams
From DZone Java Zone
March 20, 2017 - 3:01am
Do you write enough tests? Even if the answer is yes, there might be some scenarios where you could add a few more to cover extra possibilities. But do you really want to go through the effort of having to write out another test for the extra inputs you are going to test? JUnitParams provides a solution to this, allowing you to write fewer individual tests while keeping the coverage the same. It does so by defining parameters to pass into each test, and then you use these parameters to replace what would have originally been static values.
In this post, I will show you a little tutorial on how to use JUnitParams.
Continue reading this article »