fixed base test case to ensure data exists for other tests

Former-commit-id: b728204c02eb46fa4c15490024b64584e64f9920
This commit is contained in:
Jeremy Long
2013-09-02 13:03:00 -04:00
parent 77fe8cb86d
commit fac7b09089

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;