Closed GoogleCodeExporter closed 8 years ago
After hunting through the closed issues, this looks like a duplicate of #31
I grabbed the latest source code and couldn't build without skipping tests due
to failures from this exact defect. I can confirm that my test case indeed
fails against the latest code in trunk (1.0.1-SNAPSHOT). I wish I had time to
code a patch for you.
Original comment by ngr...@inco5.com
on 27 Mar 2013 at 8:24
I created a patch that seems to work for me.
Original comment by ngr...@inco5.com
on 29 Mar 2013 at 7:22
Attachments:
The problem was actually not in JUnitParams, but in the way JUnit stores test
method description. Your fix just skipped such "wrong" test instead of working
around the JUnit problem by skipping the '\r' in the test description. Now it's
ok, will be released with 1.0.1 still today.
Original comment by pawel.li...@pragmatists.pl
on 4 Apr 2013 at 8:51
Original comment by lipinski...@gmail.com
on 4 Apr 2013 at 8:51
I see... It now handles carriage returns and nulls, but line feeds still fail:
@Test
@Parameters({ "\n" })
public void causeSimpleRunnerNPE(String param1) {
assertNotNull("param1", param1);
}
Original comment by ngr...@inco5.com
on 4 Apr 2013 at 9:35
I should say, the line feeds fail on Windows, where
System.getProperty("line.separator") returns \r\n
Original comment by ngr...@inco5.com
on 4 Apr 2013 at 9:36
Since this issue is closed I opened new issue for fixing the bug introduced by
fix for this issue:
http://code.google.com/p/junitparams/issues/detail?id=46
Original comment by jankowsk...@gmail.com
on 9 Jul 2013 at 3:24
Original issue reported on code.google.com by
ngr...@inco5.com
on 27 Mar 2013 at 8:11Attachments: