@Test public void testGetInfo () throws IOException { MySQLConfig mySQLConfig = createConfig(); DatabaseUpgrader databaseUpgrader = new DatabaseUpgrader(mySQLConfig); assertNotNull(databaseUpgrader.getInfo()); }
public String getInfo () { MigrationInfoService infoService = this.flyway.info(); String s = ""; for (MigrationInfo info : infoService.all()) { s += " - " + info.getDescription() + ", script: " + info.getScript() + ", state: " + info.getState() + ", version: " + info.getVersion() + "\n"; } return s; }
DatabaseUpgrader { public String getInfo () { MigrationInfoService infoService = this.flyway.info(); String s = ""; for (MigrationInfo info : infoService.all()) { s += " - " + info.getDescription() + ", script: " + info.getScript() + ", state: " + info.getState() + ", version: " + info.getVersion() + "\n"; } return s; } }
DatabaseUpgrader { public String getInfo () { MigrationInfoService infoService = this.flyway.info(); String s = ""; for (MigrationInfo info : infoService.all()) { s += " - " + info.getDescription() + ", script: " + info.getScript() + ", state: " + info.getState() + ", version: " + info.getVersion() + "\n"; } return s; } DatabaseUpgrader(MySQLConfig mySQLConfig); }
DatabaseUpgrader { public String getInfo () { MigrationInfoService infoService = this.flyway.info(); String s = ""; for (MigrationInfo info : infoService.all()) { s += " - " + info.getDescription() + ", script: " + info.getScript() + ", state: " + info.getState() + ", version: " + info.getVersion() + "\n"; } return s; } DatabaseUpgrader(MySQLConfig mySQLConfig); void migrate(); String getInfo(); }
DatabaseUpgrader { public String getInfo () { MigrationInfoService infoService = this.flyway.info(); String s = ""; for (MigrationInfo info : infoService.all()) { s += " - " + info.getDescription() + ", script: " + info.getScript() + ", state: " + info.getState() + ", version: " + info.getVersion() + "\n"; } return s; } DatabaseUpgrader(MySQLConfig mySQLConfig); void migrate(); String getInfo();  }