mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
ENH: Add DB Migration runner (as alternative to running via FlywayDB etc) #636
This commit is contained in:
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user