btreeCopy.commit();
}
@Test
public void testInsertRepeatlyShort() throws SqlJetException {
final SqlJetSchema schema = new SqlJetSchema(db, btreeCopy);
btreeCopy.setSchema(schema);
final ISqlJetBtreeDataTable data = new SqlJetBtreeDataTable(btreeCopy, REP_CACHE_TABLE, true);
final String idx = schema.getIndexes(REP_CACHE_TABLE).iterator().next().getName();
Assert.assertNotNull(idx);
final ISqlJetBtreeIndexTable index = new SqlJetBtreeIndexTable(btreeCopy, idx, true);
for (int i = 0; i < REPEATS_COUNT; i++) {
btreeCopy.beginTrans(SqlJetTransactionMode.WRITE);
insertHash(schema, data, index, String.valueOf(i));