|
|
|
|
@ -53,10 +53,9 @@ class FlywayEndpointTests {
@@ -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) -> { |
|
|
|
|
|