|
|
|
@ -148,8 +148,7 @@ public class IntegrationAutoConfigurationTests {
|
|
|
|
|
public void integrationJdbcDatabaseInitializerEnabled() {
|
|
|
|
|
load(new Class[] { EmbeddedDataSourceConfiguration.class,
|
|
|
|
|
DataSourceTransactionManagerAutoConfiguration.class,
|
|
|
|
|
JdbcTemplateAutoConfiguration.class,
|
|
|
|
|
IntegrationAutoConfiguration.class},
|
|
|
|
|
JdbcTemplateAutoConfiguration.class, IntegrationAutoConfiguration.class },
|
|
|
|
|
"spring.datasource.generate-unique-name=true",
|
|
|
|
|
"spring.integration.jdbc.initializer.enabled=true");
|
|
|
|
|
assertThat(this.context.getBean(IntegrationProperties.class).getJdbc()
|
|
|
|
@ -169,8 +168,7 @@ public class IntegrationAutoConfigurationTests {
|
|
|
|
|
public void integrationJdbcDatabaseInitializerDisabled() {
|
|
|
|
|
load(new Class[] { EmbeddedDataSourceConfiguration.class,
|
|
|
|
|
DataSourceTransactionManagerAutoConfiguration.class,
|
|
|
|
|
JdbcTemplateAutoConfiguration.class,
|
|
|
|
|
IntegrationAutoConfiguration.class },
|
|
|
|
|
JdbcTemplateAutoConfiguration.class, IntegrationAutoConfiguration.class },
|
|
|
|
|
"spring.datasource.generate-unique-name=true",
|
|
|
|
|
"spring.integration.jdbc.initializer.enabled=false");
|
|
|
|
|
assertThat(this.context.getBean(IntegrationProperties.class).getJdbc()
|
|
|
|
@ -184,8 +182,7 @@ public class IntegrationAutoConfigurationTests {
|
|
|
|
|
public void integrationJdbcDatabaseInitializerDisabledByDefault() {
|
|
|
|
|
load(new Class[] { EmbeddedDataSourceConfiguration.class,
|
|
|
|
|
DataSourceTransactionManagerAutoConfiguration.class,
|
|
|
|
|
JdbcTemplateAutoConfiguration.class,
|
|
|
|
|
IntegrationAutoConfiguration.class },
|
|
|
|
|
JdbcTemplateAutoConfiguration.class, IntegrationAutoConfiguration.class },
|
|
|
|
|
"spring.datasource.generate-unique-name=true");
|
|
|
|
|
assertThat(this.context.getBean(IntegrationProperties.class).getJdbc()
|
|
|
|
|
.getInitializer().isEnabled()).isFalse();
|
|
|
|
|