WIP update for migration runner

This commit is contained in:
Robin Bygrave
2016-02-10 20:51:55 +13:00
parent 12e6c0b139
commit 84fa373728
5 changed files with 104 additions and 13 deletions
@@ -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);
}
}