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

Method testBeginCommit

java/unittests/TransactionTest.java:65–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 public void testBeginCommit() {
66 Environment env = new Environment();
67 Transaction txn;
68 try {
69 env.create("jtest.db", Const.UPS_ENABLE_TRANSACTIONS);
70 txn = env.begin();
71 txn.commit();
72 env.close();
73 }
74 catch (DatabaseException err) {
75 fail("Exception " + err);
76 }
77 }
78
79 public void testBeginEraseAbort() {
80 byte[] k = new byte[5];

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
beginMethod · 0.95
commitMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected