MCPcopy Create free account
hub / github.com/cruppstahl/upscaledb / testBeginAbort

Method testBeginAbort

java/unittests/TransactionTest.java:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22public class TransactionTest extends TestCase {
23
24 public void testBeginAbort() {
25 Environment env = new Environment();
26 Transaction txn;
27 try {
28 env.create("jtest.db", Const.UPS_ENABLE_TRANSACTIONS);
29 txn = env.begin();
30 txn.abort();
31 env.close();
32 }
33 catch (DatabaseException err) {
34 fail("Exception " + err);
35 }
36 }
37
38 public void testBeginInsertAbort() {
39 byte[] k = new byte[5];

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
beginMethod · 0.95
abortMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected