[HHH-10290] ignore environment property hibernate.jdbc.batch_versioned_data in BatchVersionedDataConfigTest

This commit is contained in:
Martin Simka 2016-01-28 14:48:05 +01:00 committed by Vlad Mihalcea
parent 18dd88c957
commit 3152bb0ffb
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ public class BatchVersionedDataConfigTest extends BaseUnitTestCase {
@Before
public void setUp() {
cfg = new Configuration();
// HHH-10290 ignore environment property hibernate.jdbc.batch_versioned_data
if (cfg.getProperties().getProperty(AvailableSettings.BATCH_VERSIONED_DATA) != null) {
cfg.getProperties().remove(AvailableSettings.BATCH_VERSIONED_DATA);
cfg.getStandardServiceRegistryBuilder().getSettings().remove(AvailableSettings.BATCH_VERSIONED_DATA);
}
}
@After