ENH: Add DB Migration runner (as alternative to running via FlywayDB etc) #636

This commit is contained in:
Robin Bygrave
2016-04-06 14:31:20 +12:00
27 changed files with 846 additions and 22 deletions
@@ -0,0 +1,10 @@
package com.avaje.ebean.dbmigration;
import static org.junit.Assert.*;
/**
* Created by rob on 1/04/16.
*/
public class MigrationRunnerTest {
}
@@ -0,0 +1,18 @@
package com.avaje.ebean.dbmigration.runner;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class ChecksumTest {
@Test
public void test_calculate() throws Exception {
int checkFoo = Checksum.calculate("foo");
assertThat(Checksum.calculate("foo")).isEqualTo(checkFoo);
assertThat(Checksum.calculate("Foo")).isNotEqualTo(checkFoo);
}
}
@@ -0,0 +1,16 @@
package com.avaje.ebean.dbmigration.runner;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by rob on 1/04/16.
*/
public class PlaceholderBuilderTest {
@Test
public void build() throws Exception {
}
}
@@ -0,0 +1,16 @@
package com.avaje.ebean.dbmigration.runner;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by rob on 1/04/16.
*/
public class ScriptTransformTest {
@Test
public void transform() throws Exception {
}
}