We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1ff2b commit b5e0e7dCopy full SHA for b5e0e7d
xml-modules/xml-3/src/test/java/com/baeldung/xml/XmlDocumentUnitTest.java
@@ -10,7 +10,6 @@
10
import java.io.FileReader;
11
import java.io.IOException;
12
import java.io.ByteArrayInputStream;
13
-import java.io.ByteArrayOutputStream;
14
import java.io.InputStream;
15
import java.io.StringReader;
16
@@ -95,8 +94,8 @@ public void givenXmlFile_whenConvertToOneLineString_thenSuccess() throws IOExcep
95
94
String expectedXml = """
96
<?xml version="1.0" encoding="UTF-8"?><posts><post postId="1"><title>Parsing XML as a String in Java</title><author>John Doe</author></post></posts>
97
""";
+
98
assertThat(actualXml).and(expectedXml).areIdentical();
99
- //assertEquals(expectedOutput, oneLineXml);
100
}
101
102
@Test
0 commit comments