// Path: src/io/andrewohara/tinkertime/TinkerTimeLauncher.java
// public static class DatabaseMigrator implements Runnable {
// 
// 	private final DbConnectionString connectionString;
// 
// 	@Inject
// 	DatabaseMigrator(DbConnectionString connectionString){
// 		this.connectionString = connectionString;
// 	}
// 
// 	@Override
// 	public void run() {
// 		// Perform Database Migration
// 		Flyway flyway = new Flyway();
// 		flyway.setBaselineOnMigrate(true);
// 		flyway.setLocations("io/andrewohara/tinkertime/db/migration");
// 		flyway.setDataSource(connectionString.getUrl(), null, null);
// 		try {
// 			flyway.migrate();
// 		} catch (FlywayException e){
// 			flyway.repair();
// 			throw e;
// 		}
// 	}
// }
// 
// Path: src/io/andrewohara/tinkertime/db/DbConnectionString.java
// public interface DbConnectionString {
// 
// 	public String getUrl();
// 
// }


import io.andrewohara.tinkertime.TinkerTimeLauncher.DatabaseMigrator;
import io.andrewohara.tinkertime.db.DbConnectionString;
import org.junit.Before;
import org.junit.Test;
package io.andrewohara.tinkertime;



public class TestDatabaseMigrationIntegration {

	private DatabaseMigrator migrator;

	@Before
	public void setup(){
// Path: src/io/andrewohara/tinkertime/TinkerTimeLauncher.java
// public static class DatabaseMigrator implements Runnable {
// 
// 	private final DbConnectionString connectionString;
// 
// 	@Inject
// 	DatabaseMigrator(DbConnectionString connectionString){
// 		this.connectionString = connectionString;
// 	}
// 
// 	@Override
// 	public void run() {
// 		// Perform Database Migration
// 		Flyway flyway = new Flyway();
// 		flyway.setBaselineOnMigrate(true);
// 		flyway.setLocations("io/andrewohara/tinkertime/db/migration");
// 		flyway.setDataSource(connectionString.getUrl(), null, null);
// 		try {
// 			flyway.migrate();
// 		} catch (FlywayException e){
// 			flyway.repair();
// 			throw e;
// 		}
// 	}
// }
// 
// Path: src/io/andrewohara/tinkertime/db/DbConnectionString.java
// public interface DbConnectionString {
// 
// 	public String getUrl();
// 
// }


// Path: test/io/andrewohara/tinkertime/TestDatabaseMigrationIntegration.java
import io.andrewohara.tinkertime.TinkerTimeLauncher.DatabaseMigrator;
import io.andrewohara.tinkertime.db.DbConnectionString;
import org.junit.Before;
import org.junit.Test;

package io.andrewohara.tinkertime;



public class TestDatabaseMigrationIntegration {

	private DatabaseMigrator migrator;

	@Before
	public void setup(){
		DbConnectionString connectionString = new DbConnectionString(){