diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java index f01bbe957c..7f10d14a20 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java @@ -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,