1

I have a Parameterized test to which I pass an object as a parameter. I know I can give a custom name with @Parameters(name="{2}"), but the default toString() is called and it's not very clear. I would like to have a method which would return a string depending on the object attributes. For now I added another parameter for this. Is there a way to add a method for this ?

Eko
  • 1,487
  • 1
  • 18
  • 36

1 Answers1

0

Passing an extra parameter as test case name is the right way.

Ashish
  • 11
  • 3