220221222223224225226227228229230
private void testCommitCommit(ReadWrite mode) { Dataset ds = create() ; ds.begin(mode) ; ds.commit() ; try { ds.commit() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; }
222223224225226227228229230231232
{ Dataset ds = create() ; ds.begin(mode) ; ds.commit() ; try { ds.commit() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; } }
232233234235236237238239240241242
private void testCommitAbort(ReadWrite mode) { Dataset ds = create() ; ds.begin(mode) ; ds.commit() ; try { ds.abort() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; }
259260261262263264265266267268269
{ Dataset ds = create() ; ds.begin(mode) ; ds.abort() ; try { ds.commit() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; } }