Skip to content

Commit b5e0e7d

Browse files
authored
Update XmlDocumentUnitTest.java
1 parent ab1ff2b commit b5e0e7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xml-modules/xml-3/src/test/java/com/baeldung/xml/XmlDocumentUnitTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import java.io.FileReader;
1111
import java.io.IOException;
1212
import java.io.ByteArrayInputStream;
13-
import java.io.ByteArrayOutputStream;
1413
import java.io.InputStream;
1514
import java.io.StringReader;
1615

@@ -95,8 +94,8 @@ public void givenXmlFile_whenConvertToOneLineString_thenSuccess() throws IOExcep
9594
String expectedXml = """
9695
<?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>
9796
""";
97+
9898
assertThat(actualXml).and(expectedXml).areIdentical();
99-
//assertEquals(expectedOutput, oneLineXml);
10099
}
101100

102101
@Test

0 commit comments

Comments
 (0)