diff options
author | James Moger <james.moger@gitblit.com> | 2014-11-03 08:18:48 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-11-03 12:51:16 -0500 |
commit | e4e9fdae539ec85552755b3a7799b75dbb7c4812 (patch) | |
tree | 3709d281e2f36827cdf11b294946967d06b71886 | |
parent | 3529ae168b78dd699c3036ebc8a2ccfd268083bc (diff) | |
download | iciql-e4e9fdae539ec85552755b3a7799b75dbb7c4812.tar.gz iciql-e4e9fdae539ec85552755b3a7799b75dbb7c4812.zip |
Improve test db definitions
-rw-r--r-- | src/test/java/com/iciql/test/IciqlSuite.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/iciql/test/IciqlSuite.java b/src/test/java/com/iciql/test/IciqlSuite.java index 3829501..c418938 100644 --- a/src/test/java/com/iciql/test/IciqlSuite.java +++ b/src/test/java/com/iciql/test/IciqlSuite.java @@ -97,13 +97,13 @@ import com.iciql.util.Utils; UUIDTest.class, ViewsTest.class, ForeignKeyTest.class, TransactionTest.class, NestedConditionsTest.class,
DataTypeAdapterTest.class })
public class IciqlSuite {
-
+ private final static File baseFolder = new File(System.getProperty("user.dir"), "/testdbs");
private static final TestDb[] TEST_DBS = {
new TestDb("H2", true, true, "jdbc:h2:mem:iciql"),
new TestDb("H2", true, false, "jdbc:h2:file:"
- + new File(System.getProperty("user.dir")).getAbsolutePath() + "testdbs/h2/iciql"),
+ + new File(baseFolder, "/h2/iciql").getAbsolutePath()),
new TestDb("H2", false, false, "jdbc:h2:tcp://localhost/"
- + new File(System.getProperty("user.dir")).getAbsolutePath() + "/testdbs/h2tcp/iciql"),
+ + new File(baseFolder, "/h2tcp/iciql").getAbsolutePath()),
new TestDb("HSQL", true, true, "jdbc:hsqldb:mem:iciql"),
new TestDb("HSQL", true, false, "jdbc:hsqldb:file:testdbs/hsql/iciql"),
new TestDb("HSQL", false, false, "jdbc:hsqldb:hsql://localhost/iciql"),
@@ -295,7 +295,7 @@ public class IciqlSuite { System.setErr(out);
}
- deleteRecursively(new File("testdbs"));
+ deleteRecursively(baseFolder);
// Start the HSQL and H2 servers in-process
org.hsqldb.Server hsql = startHSQL();
|