aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-11-03 08:18:48 -0500
committerJames Moger <james.moger@gitblit.com>2014-11-03 12:51:16 -0500
commite4e9fdae539ec85552755b3a7799b75dbb7c4812 (patch)
tree3709d281e2f36827cdf11b294946967d06b71886
parent3529ae168b78dd699c3036ebc8a2ccfd268083bc (diff)
downloadiciql-e4e9fdae539ec85552755b3a7799b75dbb7c4812.tar.gz
iciql-e4e9fdae539ec85552755b3a7799b75dbb7c4812.zip
Improve test db definitions
-rw-r--r--src/test/java/com/iciql/test/IciqlSuite.java8
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();