happygiraffe/jslint4java — pull request #12 by dkoper (2014-01-09 02:50:50+00:00)
Title: TEST: use platform newline in test to allow test to pass on Windows

Unit test used "\n" in expected result, but on Windows the expected output is "\r\n". This fix makes the following test failure go away.

Failed tests:
MainTest.testReportJunit:198->assertStdoutContains:52
Expected: a string containing "D:\sources\OSS\jslint4java\jslint4java\target\test-classes\com\googlecode\jslint4java\bad.js:1:1:'alert' was used before it was defined.\n"
but: was "
D:\sources\OSS\jslint4java\jslint4java\target\test-classes\com\googlecode\jslint
4java\bad.js:1:1:'alert' was used before it was defined.
D:\sources\OSS\jslint4java\jslint4java\target\test-classes\com\googlecode\jslint4java\bad.js:1:10:Expected ';' and instead saw '(end)'.

"