File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/test Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1324,17 +1324,15 @@ public void testSparqlOptions() throws IOException {
13241324
13251325 RowManager rowMgr = Common .client .newRowManager ();
13261326 PlanBuilder pb = rowMgr .newPlanBuilder ();
1327- PlanSparqlOptions options = pb .sparqlOptions ().withDeduplicated (true ).withBase ("http://marklogicsparql.com/id#" );
1328- //System.out.println(options.getDeduplicated());
1327+ PlanSparqlOptions options = pb .sparqlOptions ().withDeduplicated (false ).withBase ("http://marklogicsparql.com/id#" );
13291328 PlanBuilder .ModifyPlan plan = pb .fromSparql (selectStmt , "sparql" , options );
13301329 JacksonHandle jacksonHandle = new JacksonHandle ();
13311330 jacksonHandle .setMimetype ("application/json" );
13321331 rowMgr .resultDoc (plan , jacksonHandle );
1333- //System.out.println(jacksonHandle.toString());
13341332
13351333 JsonNode jsonBindingsNodes = jacksonHandle .get ().path ("rows" );
13361334 JsonNode node = jsonBindingsNodes .path (0 );
1337- assertEquals (" nodes not returned from fromSparql method" , 1 , jsonBindingsNodes .size ());
1335+ assertEquals (" nodes not returned from fromSparql method" , 6 , jsonBindingsNodes .size ());
13381336 assertEquals ("Row 1 value incorrect" , "Jim" , node .path ("sparql.firstName" ).path ("value" ).asText ());
13391337 }
13401338 @ Test
You can’t perform that action at this time.
0 commit comments