Skip to content

Commit 0a4fce5

Browse files
committed
updated with a test key
1 parent afac625 commit 0a4fce5

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test-complete/src/test/java/com/marklogic/javaclient/TestRawCombinedQuery.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
import org.custommonkey.xmlunit.exceptions.XpathException;
2929
import org.junit.*;
30-
30+
import org.junit.runners.MethodSorters;
31+
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
3132
public class TestRawCombinedQuery extends BasicJavaClientREST {
3233
private static String dbName = "TestRawCombinedQueryDB";
3334
private static String [] fNames = {"TestRawCombinedQueryDB-1"};
@@ -101,7 +102,7 @@ public void testBug22353() throws IOException, ParserConfigurationException, SAX
101102
}
102103

103104
@Test
104-
public void testRawCombinedQueryXML() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
105+
public void test1RawCombinedQueryXML() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
105106
{
106107
System.out.println("Running testRawCombinedQueryXML");
107108

@@ -153,7 +154,7 @@ public void testRawCombinedQueryXML() throws IOException, ParserConfigurationExc
153154
}
154155

155156
@Test
156-
public void testRawCombinedQueryXMLWithOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
157+
public void test2RawCombinedQueryXMLWithOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
157158
{
158159
System.out.println("Running testRawCombinedQueryXMLWithOptions");
159160

@@ -205,7 +206,7 @@ public void testRawCombinedQueryXMLWithOptions() throws IOException, ParserConfi
205206
}
206207

207208
@Test
208-
public void testRawCombinedQueryXMLWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
209+
public void test3RawCombinedQueryXMLWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
209210
{
210211
System.out.println("Running testRawCombinedQueryXMLWithOverwriteOptions");
211212

@@ -256,7 +257,7 @@ public void testRawCombinedQueryXMLWithOverwriteOptions() throws IOException, Pa
256257
}
257258

258259
@Test
259-
public void testRawCombinedQueryJSONWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
260+
public void test4RawCombinedQueryJSONWithOverwriteOptions() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
260261
{
261262
System.out.println("Running testRawCombinedQueryJSONWithOverwriteOptions");
262263

@@ -311,7 +312,7 @@ public void testRawCombinedQueryJSONWithOverwriteOptions() throws IOException, P
311312
}
312313

313314
@Test
314-
public void testRawCombinedQueryJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
315+
public void test5RawCombinedQueryJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
315316
{
316317
System.out.println("Running testRawCombinedQueryJSON");
317318

@@ -363,7 +364,7 @@ public void testRawCombinedQueryJSON() throws IOException, ParserConfigurationEx
363364
}
364365

365366
@Test
366-
public void testRawCombinedQueryWildcard() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
367+
public void test6RawCombinedQueryWildcard() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
367368
{
368369
System.out.println("Running testRawCombinedQueryWildcard");
369370

@@ -416,7 +417,7 @@ public void testRawCombinedQueryWildcard() throws IOException, ParserConfigurati
416417
}
417418

418419
@Test
419-
public void testRawCombinedQueryCollection() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
420+
public void test7RawCombinedQueryCollection() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
420421
{
421422
System.out.println("Running testRawCombinedQueryCollection");
422423

@@ -479,7 +480,7 @@ public void testRawCombinedQueryCollection() throws IOException, ParserConfigura
479480
}
480481

481482
@Test
482-
public void testRawCombinedQueryCombo() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
483+
public void test8RawCombinedQueryCombo() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
483484
{
484485
System.out.println("Running testRawCombinedQueryCombo");
485486

@@ -542,7 +543,7 @@ public void testRawCombinedQueryCombo() throws IOException, ParserConfigurationE
542543
}
543544

544545
@Test
545-
public void testRawCombinedQueryField() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
546+
public void test9RawCombinedQueryField() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
546547
{
547548
System.out.println("Running testRawCombinedQueryField");
548549

@@ -587,7 +588,7 @@ public void testRawCombinedQueryField() throws IOException, ParserConfigurationE
587588
}
588589

589590
@Test
590-
public void testRawCombinedQueryPathIndex() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
591+
public void test10RawCombinedQueryPathIndex() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
591592
{
592593
System.out.println("Running testRawCombinedQueryPathIndex");
593594

@@ -630,7 +631,7 @@ public void testRawCombinedQueryPathIndex() throws IOException, ParserConfigurat
630631
}
631632

632633
@Test
633-
public void testRawCombinedQueryComboJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
634+
public void test11RawCombinedQueryComboJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
634635
{
635636
System.out.println("Running testRawCombinedQueryComboJSON");
636637

@@ -694,15 +695,14 @@ public void testRawCombinedQueryComboJSON() throws IOException, ParserConfigurat
694695
String resultDoc = resultsHandle.get();
695696

696697
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(&quot;/collection-constraint/constraint1.xml&quot;)\" 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(&quot;/collection-constraint/constraint1.xml&quot;)\" score=\"28672\" confidence=\"0.6951694\" fitness=\"0.9213214\" href=\"/v1/documents?uri=%2Fcollection-constraint%2Fconstraint1.xml\" mimetype=\"application/xml\" format=\"xml\">"));
699699

700700
// release client
701701
client.release();
702702
}
703703

704704
@Test
705-
public void testRawCombinedQueryFieldJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
705+
public void test12RawCombinedQueryFieldJSON() throws IOException, ParserConfigurationException, SAXException, XpathException, TransformerException
706706
{
707707
System.out.println("Running testRawCombinedQueryFieldJSON");
708708

0 commit comments

Comments
 (0)