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