mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-08-26 23:35:52 +02:00
fix IndentXMLStreamWriterTest on windows
This commit is contained in:
@@ -86,15 +86,14 @@ public class IndentXMLStreamWriterTest
|
||||
|
||||
String content = baos.toString();
|
||||
|
||||
//J-
|
||||
Assert.assertEquals(
|
||||
"<?xml version=\"1.0\" ?>\n" +
|
||||
"<root>\n" +
|
||||
" <message>Hello</message>\n" +
|
||||
"</root>\n",
|
||||
content
|
||||
);
|
||||
//J
|
||||
StringBuilder buffer = new StringBuilder("<?xml version=\"1.0\" ?>");
|
||||
buffer.append(IndentXMLStreamWriter.LINE_SEPARATOR);
|
||||
buffer.append("<root>").append(IndentXMLStreamWriter.LINE_SEPARATOR);
|
||||
buffer.append(" <message>Hello</message>");
|
||||
buffer.append(IndentXMLStreamWriter.LINE_SEPARATOR);
|
||||
buffer.append("</root>").append(IndentXMLStreamWriter.LINE_SEPARATOR);
|
||||
|
||||
Assert.assertEquals(buffer.toString(), content);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user