Test Flyway location checking with implicit classpath: prefix

Closes gh-10894
This commit is contained in:
Andy Wilkinson 2017-11-23 11:44:25 +00:00
parent d4e19f8170
commit 137d3f3533
1 changed files with 10 additions and 0 deletions

View File

@ -182,6 +182,16 @@ public class FlywayAutoConfigurationTests {
PropertyPlaceholderAutoConfiguration.class);
}
@Test
public void checkLocationsAllExistWithImplicitClasspathPrefix() throws Exception {
EnvironmentTestUtils.addEnvironment(this.context,
"flyway.locations:db/changelog,db/migration",
"flyway.check-location:true");
registerAndRefresh(EmbeddedDataSourceConfiguration.class,
FlywayAutoConfiguration.class,
PropertyPlaceholderAutoConfiguration.class);
}
@Test
public void customFlywayMigrationStrategy() throws Exception {
registerAndRefresh(EmbeddedDataSourceConfiguration.class,