From 137d3f3533b93c2b10fc9fa1d174bc5777225020 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 23 Nov 2017 11:44:25 +0000 Subject: [PATCH] Test Flyway location checking with implicit classpath: prefix Closes gh-10894 --- .../flyway/FlywayAutoConfigurationTests.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 f01bbe957c5..7f10d14a20e 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,