109110111112113114115116117118119
// Default graph @Test public void delete_01() { DatasetGraphAccessor updater = getDatasetUpdater() ; updater.httpDelete() ; Graph graph = updater.httpGet() ; assertTrue(graph.isEmpty()) ; updater.httpPut(graph1) ; graph = updater.httpGet() ;
117118119120121122123124125126127
updater.httpPut(graph1) ; graph = updater.httpGet() ; assertFalse(graph.isEmpty()) ; updater.httpDelete() ; graph = updater.httpGet() ; assertTrue(graph.isEmpty()) ; } // Named graph, no side effects.
133134135136137138139140141142143
assertNullOrEmpty(graph) ; updater.httpPut(graph2) ; updater.httpPut(n1, graph1) ; updater.httpDelete() ; graph = updater.httpGet() ; assertTrue(graph.isEmpty()) ; updater.httpPut(graph2) ; graph = updater.httpGet(n1) ;
141142143144145146147148149150151
updater.httpPut(graph2) ; graph = updater.httpGet(n1) ; assertFalse(graph.isEmpty()) ; updater.httpDelete(n1) ; graph = updater.httpGet(n1) ; assertNullOrEmpty(graph) ; graph = updater.httpGet() ; assertFalse(graph.isEmpty()) ; }