No effective change - add simple UnderscoreNamingConvention tests

This commit is contained in:
rob bygrave
2019-11-29 21:03:44 +13:00
parent aa4c6b7889
commit 996e582a85
@@ -29,6 +29,19 @@ public class UnderscoreNamingConventionTest {
assertThat(namingConvention.toCamelFromUnderscore(col)).isEqualTo("helloThereId");
}
@Test
public void with_suffix_ID() {
String col = namingConvention.getColumnFromProperty(null, "helloID");
assertThat(col).isEqualTo("hello_id");
assertThat(namingConvention.toCamelFromUnderscore(col)).isEqualTo("helloId");
col = namingConvention.getColumnFromProperty(null, "helloThereID");
assertThat(col).isEqualTo("hello_there_id");
assertThat(namingConvention.toCamelFromUnderscore(col)).isEqualTo("helloThereId");
}
@Test
public void getColumnFromProperty() {