You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-complete/src/test/java/com/marklogic/javaclient/TestBulkSearchWithStrucQueryDef.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -247,21 +247,21 @@ public void testBulkSearchSQDwithJSONResponseFormat() throws Exception{
247
247
248
248
// System.out.println(jh.get().toString());
249
249
assertTrue("Searh response has entry for facets",jh.get().has("facets"));
250
-
assertTrue("Searh response has entry for facets",jh.get().has("results"));//Issue 84 is tracking this
251
-
assertTrue("Searh response has entry for facets",jh.get().has("metrics"));
250
+
assertFalse("Searh response has entry for facets",jh.get().has("results"));//Issue 84 is tracking this
251
+
assertFalse("Searh response has entry for facets",jh.get().has("metrics"));
252
252
253
253
docMgr.setSearchView(QueryView.RESULTS);
254
254
docMgr.search(qd, 1,jh);
255
255
256
256
assertFalse("Searh response has entry for facets",jh.get().has("facets"));
257
257
assertTrue("Searh response has entry for facets",jh.get().has("results"));
258
-
assertTrue("Searh response has entry for facets",jh.get().has("metrics"));//Issue 84 is tracking this
258
+
assertFalse("Searh response has entry for facets",jh.get().has("metrics"));//Issue 84 is tracking this
259
259
260
260
docMgr.setSearchView(QueryView.METADATA);
261
261
docMgr.search(qd, 1,jh);
262
262
263
263
assertFalse("Searh response has entry for facets",jh.get().has("facets"));
264
-
assertTrue("Searh response has entry for facets",jh.get().has("results"));
264
+
assertFalse("Searh response has entry for facets",jh.get().has("results"));
265
265
assertTrue("Searh response has entry for facets",jh.get().has("metrics"));
266
266
267
267
docMgr.setSearchView(QueryView.ALL);
@@ -318,7 +318,7 @@ public void testBulkSearchSQDwithTransactionsandDOMHandle() throws Exception{
318
318
finally{t.rollback();}
319
319
320
320
docMgr.search(qd, 1,results);
321
-
assertEquals("Total search results after rollback are ","0",results.get().getElementsByTagNameNS("*", "response").item(0).getAttributes().getNamedItem("total").getNodeValue());
321
+
assertNull("Total search results after rollback are ",results.get().getElementsByTagNameNS("*", "response").item(0).getAttributes().getNamedItem("total"));
0 commit comments