@Test public void shouldInitializeDb() { when(mdsConfig.getFlywaySchemaProperties()).thenReturn(flywayProperties); flywayInitializer.migrate(); verify(flyway).configure(flywayProperties); verify(flyway).migrate(); }
public void migrate() { LOGGER.debug("Starting Flyway initializer"); Properties flywaySchemaProps = mdsConfig.getFlywaySchemaProperties(); LOGGER.debug("Configuring flyway with properties: {}", flywaySchemaProps); flyway.configure(flywaySchemaProps); LOGGER.info("Starting flyway migrations"); flyway.migrate(); }
FlywayInitializer { public void migrate() { LOGGER.debug("Starting Flyway initializer"); Properties flywaySchemaProps = mdsConfig.getFlywaySchemaProperties(); LOGGER.debug("Configuring flyway with properties: {}", flywaySchemaProps); flyway.configure(flywaySchemaProps); LOGGER.info("Starting flyway migrations"); flyway.migrate(); } }
FlywayInitializer { public void migrate() { LOGGER.debug("Starting Flyway initializer"); Properties flywaySchemaProps = mdsConfig.getFlywaySchemaProperties(); LOGGER.debug("Configuring flyway with properties: {}", flywaySchemaProps); flyway.configure(flywaySchemaProps); LOGGER.info("Starting flyway migrations"); flyway.migrate(); }  }
FlywayInitializer { public void migrate() { LOGGER.debug("Starting Flyway initializer"); Properties flywaySchemaProps = mdsConfig.getFlywaySchemaProperties(); LOGGER.debug("Configuring flyway with properties: {}", flywaySchemaProps); flyway.configure(flywaySchemaProps); LOGGER.info("Starting flyway migrations"); flyway.migrate(); }  void migrate(); }
FlywayInitializer { public void migrate() { LOGGER.debug("Starting Flyway initializer"); Properties flywaySchemaProps = mdsConfig.getFlywaySchemaProperties(); LOGGER.debug("Configuring flyway with properties: {}", flywaySchemaProps); flyway.configure(flywaySchemaProps); LOGGER.info("Starting flyway migrations"); flyway.migrate(); }  void migrate();  }