()
| 116 | } |
| 117 | |
| 118 | public void testCursor() { |
| 119 | Environment env = new Environment(); |
| 120 | Transaction txn; |
| 121 | byte[] key = new byte[10]; |
| 122 | byte[] record = new byte[10]; |
| 123 | try { |
| 124 | env.create("jtest.db", Const.UPS_ENABLE_TRANSACTIONS); |
| 125 | Database db = env.createDatabase((short)1); |
| 126 | txn = env.begin(); |
| 127 | Cursor c = new Cursor(db, txn); |
| 128 | db.insert(txn, key, record); |
| 129 | c.moveFirst(); |
| 130 | c.close(); |
| 131 | db.close(); |
| 132 | env.close(); |
| 133 | } |
| 134 | catch (DatabaseException err) { |
| 135 | fail("DatabaseException " + err.getMessage()); |
| 136 | } |
| 137 | } |
| 138 | } |
nothing calls this directly
no test coverage detected