#1417 - Breaking API - Remove PersistBatch.INSERT ... migrate to PersistBatch.ALL

This commit is contained in:
rob bygrave committed 2018-06-18 21:15:10 +12:00
1 parent 117737c790
commit 8d976f83a9
14 files changed
+140 -73

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ public class TxScopeTest {
TxScope scope = new TxScope();
scope.setBatchSize(100);
scope.setBatchOnCascade(PersistBatch.INSERT);
scope.setBatchOnCascade(PersistBatch.ALL);
scope.checkBatchMode();
assertNull(scope.getBatch());
@@ -51,8 +51,8 @@ public class ServerConfigTest {
serverConfig.setReadOnlyDataSourceConfig(new DataSourceConfig());
Properties props = new Properties();
props.setProperty("persistBatch", "INSERT");
props.setProperty("persistBatchOnCascade", "INSERT");
props.setProperty("persistBatch", "ALL");
props.setProperty("persistBatchOnCascade", "ALL");
props.setProperty("dbuuid", "binary");
props.setProperty("jdbcFetchSizeFindEach", "42");
props.setProperty("jdbcFetchSizeFindList", "43");
@@ -80,8 +80,8 @@ public class ServerConfigTest {
assertThat(serverConfig.getNamingConvention()).isInstanceOf(MatchingNamingConvention.class);
assertEquals(IdType.SEQUENCE, serverConfig.getIdType());
assertEquals(PersistBatch.INSERT, serverConfig.getPersistBatch());
assertEquals(PersistBatch.INSERT, serverConfig.getPersistBatchOnCascade());
assertEquals(PersistBatch.ALL, serverConfig.getPersistBatch());
assertEquals(PersistBatch.ALL, serverConfig.getPersistBatchOnCascade());
assertEquals(PlatformConfig.DbUuid.BINARY, serverConfig.getPlatformConfig().getDbUuid());
assertEquals(JsonConfig.DateTime.ISO8601, serverConfig.getJsonDateTime());