Refactor: relpaced system-property "ebean.ignoreExtraDdl" with serverConfig flag (#1597)

This commit is contained in:
Roland Praml
2019-01-09 16:17:11 +13:00
committed by Rob Bygrave
parent 93b9cbf9ac
commit 5fe532c393
16 changed files with 43 additions and 36 deletions
@@ -42,8 +42,6 @@ public class TestAutoCommitDataSource extends BaseTestCase {
assertTrue(connection.getAutoCommit());
connection.close();
System.setProperty("ebean.ignoreExtraDdl", "true");
ServerConfig config = new ServerConfig();
config.setName("h2autocommit");
config.loadFromProperties();
@@ -55,6 +53,8 @@ public class TestAutoCommitDataSource extends BaseTestCase {
config.addClass(UTDetail.class);
config.setDdlGenerate(true);
config.setDdlRun(true);
config.setDdlExtra(false);
config.setAutoCommitMode(true);
EbeanServer ebeanServer = EbeanServerFactory.create(config);