diff --git a/src/test/java/com/avaje/ebean/config/MatchingNamingConventionTest.java b/src/test/java/com/avaje/ebean/config/MatchingNamingConventionTest.java new file mode 100644 index 000000000..f9aa5649f --- /dev/null +++ b/src/test/java/com/avaje/ebean/config/MatchingNamingConventionTest.java @@ -0,0 +1,18 @@ +package com.avaje.ebean.config; + +import org.junit.Test; + +import static org.assertj.core.api.StrictAssertions.assertThat; + +public class MatchingNamingConventionTest { + + private MatchingNamingConvention namingConvention = new MatchingNamingConvention(); + + @Test + public void getColumnFromProperty() throws Exception { + + String fkCol = "bridgetab_userId"; + String col = namingConvention.getColumnFromProperty(null, fkCol); + assertThat(col).isEqualTo(fkCol); + } +} \ No newline at end of file diff --git a/src/test/java/com/avaje/ebean/config/UnderscoreNamingConventionTest.java b/src/test/java/com/avaje/ebean/config/UnderscoreNamingConventionTest.java new file mode 100644 index 000000000..209b702bc --- /dev/null +++ b/src/test/java/com/avaje/ebean/config/UnderscoreNamingConventionTest.java @@ -0,0 +1,20 @@ +package com.avaje.ebean.config; + +import org.junit.Test; + +import static org.assertj.core.api.Assertions.assertThat; + +public class UnderscoreNamingConventionTest { + + private UnderscoreNamingConvention namingConvention = new UnderscoreNamingConvention(); + + @Test + public void getColumnFromProperty() throws Exception { + + String fkCol = "bridgetab_user_id"; + + String col = namingConvention.getColumnFromProperty(null, fkCol); + assertThat(col).isEqualTo(fkCol); + } + +} \ No newline at end of file