Skip to content

Commit 85f32cc

Browse files
sammeffordCharles Greer
authored andcommitted
fix #54, need to be explicit about response handler format if I want back JSON
1 parent 997aa07 commit 85f32cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/com/marklogic/client/test/RawQueryDefinitionTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public static void beforeClass() {
6363
Common.connectAdmin();
6464
queryMgr = Common.client.newQueryManager();
6565
//System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.wire", "debug");
66-
//System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http", "debug");
6766
}
6867

6968
@AfterClass
@@ -278,7 +277,7 @@ public void testByExampleSearch() throws IOException, SAXException, XpathExcepti
278277
"\"$query\":{\"favorited\":\"true\"}"+
279278
"}"
280279
);
281-
output = queryMgr.search(qbe, new StringHandle()).get();
280+
output = queryMgr.search(qbe, new StringHandle().withFormat(Format.JSON)).get();
282281
assertNotNull("Empty JSON output", output);
283282
assertTrue("Output without a match",
284283
output.contains("\"results\":[{\"index\":1,"));

0 commit comments

Comments
 (0)