()
| 295 | } |
| 296 | |
| 297 | public void testErase() { |
| 298 | byte[] key = new byte[10]; |
| 299 | byte[] record = new byte[10]; |
| 300 | Cursor c = null; |
| 301 | try { |
| 302 | c = new Cursor(m_db); |
| 303 | m_db.insert(key, record); |
| 304 | c.find(key); |
| 305 | c.erase(); |
| 306 | } |
| 307 | catch (DatabaseException err) { |
| 308 | fail("DatabaseException " + err.getMessage()); |
| 309 | } |
| 310 | try { |
| 311 | c.find(key); |
| 312 | } |
| 313 | catch (DatabaseException err) { |
| 314 | assertEquals(Const.UPS_KEY_NOT_FOUND, err.getErrno()); |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | public void testGetDuplicateCount() { |
| 319 | byte[] key = new byte[10]; |
nothing calls this directly
no test coverage detected