Commit 82ea3b51 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent 5b2caa89
......@@ -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) -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment