Adding dstest manual creation, not letting derby create it

This commit is contained in:
Joakim Erdfelt 2014-07-17 20:50:20 -07:00
parent 30fcce1cdc
commit dcee2bd5c4
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ public class DataSourceLoginServiceTest
System.setProperty("derby.system.home", dbPath);
FS.ensureEmpty(_dbRoot);
File dstest = new File(_dbRoot, "dstest");
FS.ensureEmpty(dstest);
File scriptFile = MavenTestingUtils.getTestResourceFile("createdb.sql");
DatabaseLoginServiceTestServer.createDB(dbPath, scriptFile, "jdbc:derby:dstest;create=true");