} catch(IllegalArgumentException e) {
// success
}
+
+ db.close();
}
}
while (table.getNextRow() != null) {
rows++;
}
- assertEquals(2, rows);
+ assertEquals(2, rows);
+ table.getDatabase().close();
}
}
checkTestDBTable1RowABCDEFG(testDB, table, row1);
checkTestDBTable1RowA(testDB, table, row2);
+
+ db.close();
}
}
for (final FileFormat fileFormat : SUPPORTED_FILEFORMATS) {
Database db = create(fileFormat);
assertEquals(0, db.getTableNames().size());
+ db.close();
}
}
assertEquals(row[6], readRow.get("G"));
assertEquals(row[7], readRow.get("H"));
}
+
+ db.close();
}
}
assertEquals(row[6], readRow.get("G"));
assertEquals(row[7], readRow.get("H"));
}
+
+ db.close();
}
}
assertRowCount(7, table);
table.reset();
assertEquals(2, table.getNextRow().get("D"));
+
+ db.close();
}
}
byte[] expectedBinaryData =
toByteArray(new File("test/data/test2BinData.dat"));
assertTrue(Arrays.equals(expectedBinaryData, foundBinaryData));
+
+ db.close();
}
}
assertEquals(testStr, row.get("A"));
assertEquals(longMemo, row.get("B"));
assertTrue(Arrays.equals(oleValue, (byte[])row.get("C")));
+
+ db.close();
}
}
}
rowNum++;
}
+
+ table.getDatabase().close();
}
}
} catch(IOException e) {
// ignored
}
+
+ db.close();
}
}
} catch(IOException e) {
// ignored
}
+
+ db.close();
}
}
} catch(IOException e) {
// ignored
}
+
+ db.close();
}
}
table.reset();
assertRowCount(7, table);
+
+ mdb.close();
}
}
assertEquals(new Integer(1), readRow.get("a"));
assertEquals(lval, readRow.get("b"));
assertEquals(tval, readRow.get("c"));
+
+ db.close();
}
}
Date found = foundDates.get(i);
assertSameDate(expected, found);
}
+
+ db.close();
}
}