fixed base test case to ensure data exists for other tests

Former-commit-id: f5c7b0a2c5d87fce004c050744b18ed4baf1d306
This commit is contained in:
Jeremy Long
2013-09-02 13:03:00 -04:00
parent d6f61b4faf
commit f23bd0b268

View File

@@ -50,7 +50,7 @@ public abstract class BaseDBTestCase extends TestCase {
public static void ensureDBExists() throws Exception {
java.io.File dataPath = Settings.getFile(Settings.KEYS.DATA_DIRECTORY);
if (!dataPath.exists() || (dataPath.isDirectory() && dataPath.listFiles().length == 0)) {
if (!dataPath.exists() || (dataPath.isDirectory() && dataPath.listFiles().length < 3)) {
dataPath.mkdirs();
FileInputStream fis = null;
ZipInputStream zin = null;