Closed GoogleCodeExporter closed 8 years ago
This is not a problem of the runner (even if it looks as such) but of the data.
Unfortunatelly $() method doesn't work nicely with nulls. As a workaround use
normal new Object[] {null} when passing nulls and it works just fine.
Original comment by lipinski...@gmail.com
on 16 Jun 2012 at 8:35
I was hit by it again. I don't like to remember about workarounds. I had a look
at the code.
You're correct. That's not a problem of the junitparams runner. Rather, a
limitation of Java var-args. But it's reported by junitparams in a misleading
way.
Nevertheless, the workaround could be moved from users code to the project
itself. I've pushed it together with tests to a clone
(http://code.google.com/r/rafalwicha-solving-issue-23/source/browse). I'm also
attaching a throw-away project with null cases.
Could you please have a look at it and merge to the next release? I assure at
least 10 users will be glad for it.
Original comment by rafalwi...@gmail.com
on 10 Nov 2012 at 5:08
Attachments:
Original comment by lipinski...@gmail.com
on 14 Dec 2012 at 3:15
Original issue reported on code.google.com by
rafalwi...@gmail.com
on 2 Jun 2012 at 7:22Attachments: