Skip to content

Commit 137d3f3

Browse files
committed
Test Flyway location checking with implicit classpath: prefix
Closes gh-10894
1 parent d4e19f8 commit 137d3f3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,16 @@ public void checkLocationsAllExist() throws Exception {
182182
PropertyPlaceholderAutoConfiguration.class);
183183
}
184184

185+
@Test
186+
public void checkLocationsAllExistWithImplicitClasspathPrefix() throws Exception {
187+
EnvironmentTestUtils.addEnvironment(this.context,
188+
"flyway.locations:db/changelog,db/migration",
189+
"flyway.check-location:true");
190+
registerAndRefresh(EmbeddedDataSourceConfiguration.class,
191+
FlywayAutoConfiguration.class,
192+
PropertyPlaceholderAutoConfiguration.class);
193+
}
194+
185195
@Test
186196
public void customFlywayMigrationStrategy() throws Exception {
187197
registerAndRefresh(EmbeddedDataSourceConfiguration.class,

0 commit comments

Comments
 (0)