Skip to content

Commit

Permalink
0000021: SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Dec 6, 2012
1 parent bfae902 commit 255ae17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions symmetric-jdbc/src/test/java/org/jumpmind/db/DbTestUtils.java
Expand Up @@ -18,8 +18,10 @@ abstract public class DbTestUtils {
public static final String ROOT = "root";
public static final String CLIENT = "client";

public static IDatabasePlatform createDatabasePlatform(String name) throws Exception {
FileUtils.deleteDirectory(new File(String.format("target/%sdbs", name)));
public static IDatabasePlatform createDatabasePlatform(String name) throws Exception {
File f = new File(String.format("target/%sdbs", name));
FileUtils.deleteDirectory(f);
f.mkdir();
DataSourceProperties properties = new DataSourceProperties(String.format("test.%s", name),
DatabasePlatformTest.class.getResource(DB_TEST_PROPERTIES), name);
return JdbcDatabasePlatformFactory.createNewPlatformInstance(properties.getDataSource(), new SqlTemplateSettings(), true);
Expand Down

0 comments on commit 255ae17

Please sign in to comment.