225226227228229230231232233234235
ds.commit() ; try { ds.commit() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; } } private void testCommitAbort(ReadWrite mode) { Dataset ds = create() ;
237238239240241242243244245246247
ds.commit() ; try { ds.abort() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; } } private void testAbortAbort(ReadWrite mode) { Dataset ds = create() ;
249250251252253254255256257258259
ds.abort() ; try { ds.abort() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; } } private void testAbortCommit(ReadWrite mode) {
262263264265266267268269270271272
ds.abort() ; try { ds.commit() ; fail("Expected transaction exception - commit-commit("+mode+")") ; } catch (JenaTransactionException ex) { ds.end() ; } } }