()
| 93 | } |
| 94 | |
| 95 | public void testMove() { |
| 96 | byte[] key = new byte[10]; |
| 97 | byte[] record = new byte[10]; |
| 98 | try { |
| 99 | Cursor c = new Cursor(m_db); |
| 100 | key[0] = 0; |
| 101 | m_db.insert(key, record); |
| 102 | key[0] = 1; |
| 103 | m_db.insert(key, record); |
| 104 | key[0] = 2; |
| 105 | m_db.insert(key, record); |
| 106 | key[0] = 3; |
| 107 | m_db.insert(key, record); |
| 108 | key[0] = 4; |
| 109 | m_db.insert(key, record); |
| 110 | c.move(Const.UPS_CURSOR_NEXT); |
| 111 | c.move(Const.UPS_CURSOR_NEXT); |
| 112 | c.move(Const.UPS_CURSOR_PREVIOUS); |
| 113 | c.move(Const.UPS_CURSOR_LAST); |
| 114 | c.move(Const.UPS_CURSOR_FIRST); |
| 115 | } |
| 116 | catch (DatabaseException err) { |
| 117 | fail("DatabaseException " + err.getMessage()); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | public void testMoveNegative() { |
| 122 | try { |
nothing calls this directly
no test coverage detected