|
|
@ -147,9 +147,8 @@ public class IntegrationAutoConfigurationTests {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
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()
|
|
|
@ -168,9 +167,8 @@ public class IntegrationAutoConfigurationTests {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
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()
|
|
|
@ -183,9 +181,8 @@ public class IntegrationAutoConfigurationTests {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
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();
|
|
|
|