Skip to content

Commit

Permalink
Add JUnit test for SparqlQueryClient.dropGraph()
Browse files Browse the repository at this point in the history
  • Loading branch information
weisenje committed Mar 14, 2023
1 parent 2bb1d7c commit c4a2bc7
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,14 @@ public void testUploadTurtle() throws Exception {
}
}

@Test
public void testDropGraph() throws Exception{
TestGraph.clearGraph();
TestGraph.uploadOwlResource(getClass(), "Pet.owl");
assertEquals(53, TestGraph.getNumTriples());
SparqlQueryClient client = IntegrationTestUtility.getSparqlQueryClient("/sparqlQueryService/dropGraph", TestGraph.getSparqlServer(), TestGraph.getDataset());
client.dropGraph();
assertEquals(0, TestGraph.getNumTriples());
}

}

0 comments on commit c4a2bc7

Please sign in to comment.