Closed GoogleCodeExporter closed 8 years ago
I was curious and had a look into the code.
This issue might be fixed by just changing the following line in
junitparams/internal/InvokeParameterisedMethod.java
if (colls.length == 1 && "".equals(colls[0]))
to
if (colls.length == 1 && "".equals(colls[0]) && numberOfParams != 1)
This test succeeds:
@Test
@Parameters({ "" })
public void singleEmptyParam(String empty) {
assertThat(empty, is(""));
}
... and all other JUnit tests work as expected.
--
Regards
Daniel
Original comment by daniel.h...@zimory.com
on 18 Jan 2013 at 7:53
Original comment by lipinski...@gmail.com
on 13 Mar 2013 at 12:53
Original issue reported on code.google.com by
daniel.h...@zimory.com
on 18 Jan 2013 at 2:20Attachments: