Skip to content

Commit 830b93b

Browse files
georgeajitgeorgeajit
authored andcommitted
Git #900 - Tested corrected.
1 parent 6115108 commit 830b93b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/functionaltest/TestSearchOptions.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ public void testRestrictedXPaths() throws KeyManagementException, NoSuchAlgorith
575575
client.release();
576576
}
577577

578+
// Note : Test asserts changed due to the fact that different serialization and parsers produce diff NS
578579
@Test
579580
public void testXmlFilesRestrictedXPaths() throws KeyManagementException, NoSuchAlgorithmException, IOException, ParserConfigurationException, SAXException, XpathException,
580581
TransformerException
@@ -662,7 +663,8 @@ public void testXmlFilesRestrictedXPaths() throws KeyManagementException, NoSuch
662663
for (ExtractedItem item : extracted) {
663664
String extractItem = item.getAs(String.class);
664665
System.out.println("Extracted item from price element search " + extractItem);
665-
assertTrue("Extracted price items incorrect", extractItem.contains("<price xmlns=\"http://cloudbank.com\" amt=\"0.1\"/>"));
666+
assertTrue("Extracted price items incorrect", extractItem.contains("http://cloudbank.com"));
667+
assertTrue("Extracted price items incorrect", extractItem.contains("amt=\"0.1\""));
666668
}
667669
}
668670
}
@@ -691,7 +693,10 @@ public void testXmlFilesRestrictedXPaths() throws KeyManagementException, NoSuch
691693
String extractItem = item.getAs(String.class);
692694
System.out.println("Extracted item from date and ancestor element search " + extractItem);
693695
assertTrue("Extracted date and ancestor items incorrect",
694-
extractItem.contains("<root><date xmlns=\"http://purl.org/dc/elements/1.1/\">2005-01-01</date></root>"));
696+
extractItem.contains("http://purl.org/dc/elements/1.1"));
697+
assertTrue("Extracted date and ancestor items incorrect",
698+
extractItem.contains("2005-01-01"));
699+
695700
}
696701
}
697702
}

0 commit comments

Comments
 (0)