mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - add simple UnderscoreNamingConvention tests
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user