Skip to content

Commit

Permalink
MNT-24250: 2.7.3-alfresco.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel-608 committed Mar 12, 2024
1 parent 5b7a416 commit e2f738c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,9 @@ public void testImportXMLDocument() throws Exception
assertNotNull(reader);
String output = reader.getContentString();

log.info("XSLT Processor output: " + output);
String x = "<html>\n<body>\n<h2>My CD Collection</h2>\n<table border=\"1\">\n<tr bgcolor=\"#9acd32\">\n<th>Title</th><th>Artist</th>\n</tr>\n<tr>\n<td></td><td></td>\n</tr>\n</table>\n</body>\n</html>\n".replace("\n", "");
Diff myDiff = new Diff(x, output.replace(" ", "").replace("\n", ""));
System.out.println("Pieces of XML are similar " + myDiff + "\n\noutput: " + output + "\n\n" + "expected: " + x);
assertTrue("Pieces of XML are similar " + myDiff + "\n\noutput: " + output + "\n\n" + "expected: " + x, myDiff.similar());
log.debug("XSLT Processor output: " + output);
Diff myDiff = new Diff("<html>\n<body>\n<h2>My CD Collection</h2>\n<table border=\"1\">\n<tr bgcolor=\"#9acd32\">\n<th>Title</th><th>Artist</th>\n</tr>\n<tr>\n<td></td><td></td>\n</tr>\n</table>\n</body>\n</html>\n", output);
assertTrue("Pieces of XML are similar " + myDiff, myDiff.similar());
}
catch (Exception ex)
{
Expand Down

0 comments on commit e2f738c

Please sign in to comment.