|
|
|
@ -69,6 +69,7 @@ import static org.assertj.core.api.Assertions.contentOf;
|
|
|
|
|
* @author Dominic Gunn
|
|
|
|
|
* @author András Deák
|
|
|
|
|
* @author Andrii Hrytsiuk
|
|
|
|
|
* @author Ferenc Gratzer
|
|
|
|
|
*/
|
|
|
|
|
@ExtendWith(OutputCaptureExtension.class)
|
|
|
|
|
class LiquibaseAutoConfigurationTests {
|
|
|
|
@ -106,6 +107,7 @@ class LiquibaseAutoConfigurationTests {
|
|
|
|
|
assertThat(liquibase.getContexts()).isNull();
|
|
|
|
|
assertThat(liquibase.getDefaultSchema()).isNull();
|
|
|
|
|
assertThat(liquibase.isDropFirst()).isFalse();
|
|
|
|
|
assertThat(liquibase.isClearCheckSums()).isFalse();
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -143,6 +145,7 @@ class LiquibaseAutoConfigurationTests {
|
|
|
|
|
assertThat(liquibase.getDatabaseChangeLogLockTable())
|
|
|
|
|
.isEqualTo(properties.getDatabaseChangeLogLockTable());
|
|
|
|
|
assertThat(liquibase.isDropFirst()).isEqualTo(properties.isDropFirst());
|
|
|
|
|
assertThat(liquibase.isClearCheckSums()).isEqualTo(properties.isClearChecksums());
|
|
|
|
|
assertThat(liquibase.isTestRollbackOnUpdate()).isEqualTo(properties.isTestRollbackOnUpdate());
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
@ -189,6 +192,13 @@ class LiquibaseAutoConfigurationTests {
|
|
|
|
|
.run(assertLiquibase((liquibase) -> assertThat(liquibase.isDropFirst()).isTrue()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void overrideClearChecksums() {
|
|
|
|
|
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class)
|
|
|
|
|
.withPropertyValues("spring.liquibase.clear-checksums:true")
|
|
|
|
|
.run(assertLiquibase((liquibase) -> assertThat(liquibase.isClearCheckSums()).isTrue()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
void overrideDataSource() {
|
|
|
|
|
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class)
|
|
|
|
|