forked from phoedos/pmd
assertion for code fragment appended PMD.EOL. This would be correct, except on Windows systems it appears that the Dom is not using the system's carriage return, rather it always uses \n's.
This test runs A-OK on linux, was failing on Windows. Runs A-OK for me on both now. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4640 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -65,7 +65,7 @@ public class XMLRendererTest extends TestCase {
|
||||
|
||||
assertEquals(1, doc.getElementsByTagName("codefragment").getLength());
|
||||
Node actualCode = doc.getElementsByTagName("codefragment").item(0).getFirstChild().getNextSibling();
|
||||
assertEquals(PMD.EOL + "code fragment" + PMD.EOL, actualCode.getNodeValue());
|
||||
assertEquals("\ncode fragment\n", actualCode.getNodeValue());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
fail(e.getMessage());
|
||||
|
Reference in New Issue
Block a user