pull/18077/head
Andy Wilkinson 5 years ago
parent 5b2caa890e
commit 82ea3b51b3

@ -53,10 +53,9 @@ class FlywayEndpointTests {
}
@Test
@SuppressWarnings("deprecation")
void whenFlywayHasBeenBaselinedFlywayReportIsProduced() {
this.contextRunner.withBean(FlywayMigrationStrategy.class, () -> (flyway) -> {
flyway.setBaselineVersionAsString("2");
this.contextRunner.withPropertyValues("spring.flyway.baseline-version=2")
.withBean(FlywayMigrationStrategy.class, () -> (flyway) -> {
flyway.baseline();
flyway.migrate();
}).run((context) -> {

Loading…
Cancel
Save