|
27 | 27 |
|
28 | 28 | import org.custommonkey.xmlunit.exceptions.XpathException; |
29 | 29 | import org.junit.*; |
30 | | - |
| 30 | +import org.junit.runners.MethodSorters; |
| 31 | +@FixMethodOrder(MethodSorters.NAME_ASCENDING) |
31 | 32 | public class TestRawCombinedQuery extends BasicJavaClientREST { |
32 | 33 | private static String dbName = "TestRawCombinedQueryDB"; |
33 | 34 | private static String [] fNames = {"TestRawCombinedQueryDB-1"}; |
@@ -101,7 +102,7 @@ public void testBug22353() throws IOException, ParserConfigurationException, SAX |
101 | 102 | } |
102 | 103 |
|
103 | 104 | @Test |
104 | | - public void testRawCombinedQueryXML() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 105 | + public void test1RawCombinedQueryXML() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
105 | 106 | { |
106 | 107 | System.out.println("Running testRawCombinedQueryXML"); |
107 | 108 |
|
@@ -153,7 +154,7 @@ public void testRawCombinedQueryXML() throws IOException, ParserConfigurationExc |
153 | 154 | } |
154 | 155 |
|
155 | 156 | @Test |
156 | | - public void testRawCombinedQueryXMLWithOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 157 | + public void test2RawCombinedQueryXMLWithOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
157 | 158 | { |
158 | 159 | System.out.println("Running testRawCombinedQueryXMLWithOptions"); |
159 | 160 |
|
@@ -205,7 +206,7 @@ public void testRawCombinedQueryXMLWithOptions() throws IOException, ParserConfi |
205 | 206 | } |
206 | 207 |
|
207 | 208 | @Test |
208 | | - public void testRawCombinedQueryXMLWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 209 | + public void test3RawCombinedQueryXMLWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
209 | 210 | { |
210 | 211 | System.out.println("Running testRawCombinedQueryXMLWithOverwriteOptions"); |
211 | 212 |
|
@@ -256,7 +257,7 @@ public void testRawCombinedQueryXMLWithOverwriteOptions() throws IOException, Pa |
256 | 257 | } |
257 | 258 |
|
258 | 259 | @Test |
259 | | - public void testRawCombinedQueryJSONWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 260 | + public void test4RawCombinedQueryJSONWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
260 | 261 | { |
261 | 262 | System.out.println("Running testRawCombinedQueryJSONWithOverwriteOptions"); |
262 | 263 |
|
@@ -311,7 +312,7 @@ public void testRawCombinedQueryJSONWithOverwriteOptions() throws IOException, P |
311 | 312 | } |
312 | 313 |
|
313 | 314 | @Test |
314 | | - public void testRawCombinedQueryJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 315 | + public void test5RawCombinedQueryJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
315 | 316 | { |
316 | 317 | System.out.println("Running testRawCombinedQueryJSON"); |
317 | 318 |
|
@@ -363,7 +364,7 @@ public void testRawCombinedQueryJSON() throws IOException, ParserConfigurationEx |
363 | 364 | } |
364 | 365 |
|
365 | 366 | @Test |
366 | | - public void testRawCombinedQueryWildcard() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 367 | + public void test6RawCombinedQueryWildcard() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
367 | 368 | { |
368 | 369 | System.out.println("Running testRawCombinedQueryWildcard"); |
369 | 370 |
|
@@ -416,7 +417,7 @@ public void testRawCombinedQueryWildcard() throws IOException, ParserConfigurati |
416 | 417 | } |
417 | 418 |
|
418 | 419 | @Test |
419 | | - public void testRawCombinedQueryCollection() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 420 | + public void test7RawCombinedQueryCollection() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
420 | 421 | { |
421 | 422 | System.out.println("Running testRawCombinedQueryCollection"); |
422 | 423 |
|
@@ -479,7 +480,7 @@ public void testRawCombinedQueryCollection() throws IOException, ParserConfigura |
479 | 480 | } |
480 | 481 |
|
481 | 482 | @Test |
482 | | - public void testRawCombinedQueryCombo() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 483 | + public void test8RawCombinedQueryCombo() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
483 | 484 | { |
484 | 485 | System.out.println("Running testRawCombinedQueryCombo"); |
485 | 486 |
|
@@ -542,7 +543,7 @@ public void testRawCombinedQueryCombo() throws IOException, ParserConfigurationE |
542 | 543 | } |
543 | 544 |
|
544 | 545 | @Test |
545 | | - public void testRawCombinedQueryField() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 546 | + public void test9RawCombinedQueryField() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
546 | 547 | { |
547 | 548 | System.out.println("Running testRawCombinedQueryField"); |
548 | 549 |
|
@@ -587,7 +588,7 @@ public void testRawCombinedQueryField() throws IOException, ParserConfigurationE |
587 | 588 | } |
588 | 589 |
|
589 | 590 | @Test |
590 | | - public void testRawCombinedQueryPathIndex() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 591 | + public void test10RawCombinedQueryPathIndex() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
591 | 592 | { |
592 | 593 | System.out.println("Running testRawCombinedQueryPathIndex"); |
593 | 594 |
|
@@ -630,7 +631,7 @@ public void testRawCombinedQueryPathIndex() throws IOException, ParserConfigurat |
630 | 631 | } |
631 | 632 |
|
632 | 633 | @Test |
633 | | - public void testRawCombinedQueryComboJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 634 | + public void test11RawCombinedQueryComboJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
634 | 635 | { |
635 | 636 | System.out.println("Running testRawCombinedQueryComboJSON"); |
636 | 637 |
|
@@ -694,15 +695,14 @@ public void testRawCombinedQueryComboJSON() throws IOException, ParserConfigurat |
694 | 695 | String resultDoc = resultsHandle.get(); |
695 | 696 |
|
696 | 697 | System.out.println(resultDoc); |
697 | | - |
698 | | - assertTrue("Returned result is not correct", resultDoc.contains("<search:result index=\"1\" uri=\"/collection-constraint/constraint1.xml\" path=\"fn:doc("/collection-constraint/constraint1.xml")\" score=\"28672\" confidence=\"0.6951694\" fitness=\"0.9213214\" href=\"/v1/documents?uri=%2Fcollection-constraint%2Fconstraint1.xml\" mimetype=\"text/xml\" format=\"xml\">")); |
| 698 | + assertTrue("Returned result is not correct", resultDoc.contains("<search:result index=\"1\" uri=\"/collection-constraint/constraint1.xml\" path=\"fn:doc("/collection-constraint/constraint1.xml")\" score=\"28672\" confidence=\"0.6951694\" fitness=\"0.9213214\" href=\"/v1/documents?uri=%2Fcollection-constraint%2Fconstraint1.xml\" mimetype=\"application/xml\" format=\"xml\">")); |
699 | 699 |
|
700 | 700 | // release client |
701 | 701 | client.release(); |
702 | 702 | } |
703 | 703 |
|
704 | 704 | @Test |
705 | | - public void testRawCombinedQueryFieldJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
| 705 | + public void test12RawCombinedQueryFieldJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException |
706 | 706 | { |
707 | 707 | System.out.println("Running testRawCombinedQueryFieldJSON"); |
708 | 708 |
|
|
0 commit comments