|
16 | 16 |
|
17 | 17 | package com.marklogic.client.functionaltest; |
18 | 18 |
|
19 | | -import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual; |
20 | | - |
21 | | -import org.custommonkey.xmlunit.XMLUnit; |
| 19 | +import static org.junit.Assert.assertTrue; |
22 | 20 |
|
23 | 21 | import javax.xml.namespace.QName; |
24 | 22 |
|
25 | | -import com.marklogic.client.admin.QueryOptionsManager; |
26 | | -import com.marklogic.client.admin.config.QueryOptionsBuilder; |
27 | | -import com.marklogic.client.io.Format; |
| 23 | +import org.custommonkey.xmlunit.Diff; |
| 24 | +import org.custommonkey.xmlunit.XMLUnit; |
| 25 | +import org.junit.After; |
| 26 | +import org.junit.AfterClass; |
| 27 | +import org.junit.BeforeClass; |
| 28 | +import org.junit.Test; |
28 | 29 |
|
29 | 30 | import com.marklogic.client.DatabaseClient; |
30 | 31 | import com.marklogic.client.DatabaseClientFactory; |
31 | 32 | import com.marklogic.client.DatabaseClientFactory.Authentication; |
| 33 | +import com.marklogic.client.admin.QueryOptionsManager; |
| 34 | +import com.marklogic.client.admin.config.QueryOptionsBuilder; |
| 35 | +import com.marklogic.client.io.Format; |
32 | 36 | import com.marklogic.client.io.QueryOptionsHandle; |
33 | 37 | import com.marklogic.client.io.StringHandle; |
34 | | - |
35 | | -import org.junit.*; |
36 | 38 | public class TestBug19443 extends BasicJavaClientREST { |
37 | 39 |
|
38 | 40 | private static String dbName = "TestBug19443DB"; |
@@ -103,7 +105,8 @@ public void testBug19443() throws Exception |
103 | 105 |
|
104 | 106 | XMLUnit.setIgnoreWhitespace(true); |
105 | 107 | XMLUnit.setNormalizeWhitespace(true); |
106 | | - assertXMLEqual("testBug19443", actual, output); |
| 108 | + Diff diff = XMLUnit.compareXML( actual, output ); |
| 109 | + assertTrue( "Not Similar", diff.similar() ); |
107 | 110 |
|
108 | 111 | // release client |
109 | 112 | client.release(); |
|
0 commit comments