* @author Tim McCune
*/
public class DatabaseTest extends TestCase {
+
+ static boolean _autoSync = Database.DEFAULT_AUTO_SYNC;
public DatabaseTest(String name) throws Exception {
super(name);
}
static Database open(File file) throws Exception {
- return Database.open(file, true, Database.DEFAULT_AUTO_SYNC);
+ return Database.open(file, true, _autoSync);
}
static Database create() throws Exception {
}
static Database create(boolean keep) throws Exception {
- return Database.create(createTempFile(keep));
+ return Database.create(createTempFile(keep), _autoSync);
}
static Database openCopy(File srcFile) throws Exception {
static Database openCopy(File srcFile, boolean keep) throws Exception {
File tmp = createTempFile(keep);
copyFile(srcFile, tmp);
- return Database.open(tmp);
+ return Database.open(tmp, false, _autoSync);
}
public void testInvalidTableDefs() throws Exception {