Skip to content

Commit

Permalink
see #300, also related to PR #185 and issues #280 #295 #296 and #298
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Sep 4, 2022
1 parent f1355c0 commit ab726f5
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,15 @@ public void testIssue295() throws URISyntaxException, IOException {
query = QueryFactory.create(queryStr);

QueryExecution qExec = QueryExecutionFactory.create(query, ds);
System.out.println(ResultSetFormatter.asText(qExec.execSelect()));
ResultSet rs = qExec.execSelect();
Set<String> expectedNames = Sets.newHashSet("Vincent", "Jules", "Beatrix");
Set<String> actualNames = new HashSet<>();
while(rs.hasNext()){
QuerySolution qs = rs.next();
actualNames.add(qs.get("name").asLiteral().getValue().toString());
}
FileUtils.deleteDirectory(tmpTBDFolder);
System.out.println("Deleting "+tmpTBDFolder.getAbsolutePath());
assertEquals(expectedNames,actualNames);
}


Expand Down

0 comments on commit ab726f5

Please sign in to comment.