When using JUnitParams, I can pass an array of Objects where each element will be used to run a test.
Is there any way to add a name or identification to each of these? So when I run these JUnit test, Eclipse would show the name of each case instead of the 0-n index of the array.
JUnitParamssupports custom test names using the@TestCaseNameannotation that would accomplish what you want. The annotation allows you to pass a template for the test name and then use indexed parameters in the format{n}.Heres a very simple example of how that would work:
Reference: