|
|
@ -178,8 +178,7 @@ class IntegrationAutoConfigurationTests {
|
|
|
|
"spring.integration.jdbc.initialize-schema=always")
|
|
|
|
"spring.integration.jdbc.initialize-schema=always")
|
|
|
|
.run((context) -> {
|
|
|
|
.run((context) -> {
|
|
|
|
IntegrationProperties properties = context.getBean(IntegrationProperties.class);
|
|
|
|
IntegrationProperties properties = context.getBean(IntegrationProperties.class);
|
|
|
|
assertThat(properties.getJdbc().getInitializeSchema())
|
|
|
|
assertThat(properties.getJdbc().getInitializeSchema()).isEqualTo(DatabaseInitializationMode.ALWAYS);
|
|
|
|
.isEqualTo(DataSourceInitializationMode.ALWAYS);
|
|
|
|
|
|
|
|
JdbcOperations jdbc = context.getBean(JdbcOperations.class);
|
|
|
|
JdbcOperations jdbc = context.getBean(JdbcOperations.class);
|
|
|
|
assertThat(jdbc.queryForList("select * from INT_MESSAGE")).isEmpty();
|
|
|
|
assertThat(jdbc.queryForList("select * from INT_MESSAGE")).isEmpty();
|
|
|
|
assertThat(jdbc.queryForList("select * from INT_GROUP_TO_MESSAGE")).isEmpty();
|
|
|
|
assertThat(jdbc.queryForList("select * from INT_GROUP_TO_MESSAGE")).isEmpty();
|
|
|
|