Search in sources :

Example 11 with TransactionHandler

use of org.apache.jena.graph.TransactionHandler in project jena by apache.

the class TestSpecials method sink_graph_txn_3.

@Test(expected = JenaException.class)
public void sink_graph_txn_3() {
    DatasetGraph dsg = DatasetGraphSink.create();
    Graph g = dsg.getDefaultGraph();
    TransactionHandler h = g.getTransactionHandler();
    h.begin();
    h.begin();
}
Also used : Graph(org.apache.jena.graph.Graph) TransactionHandler(org.apache.jena.graph.TransactionHandler) Test(org.junit.Test)

Aggregations

TransactionHandler (org.apache.jena.graph.TransactionHandler)11 Graph (org.apache.jena.graph.Graph)8 Test (org.junit.Test)8 Command (org.apache.jena.shared.Command)2 ContractTest (org.xenei.junit.contract.ContractTest)2 JenaException (org.apache.jena.shared.JenaException)1