private final String[] propertyNames = new String[] { "username", "email", "companyName", "eventLog" };
private final String[] columnNames = new String[] { "username", "email", "company_name", "event_log" };
@Test
public void improvedNaming_ClassToTableName() {
ImprovedNamingStrategy namingStrategy = new ImprovedNamingStrategy();
for (int i = 0; i < classNames.length; i++) {
String tableName = namingStrategy.classToTableName(classNames[i]);
assertThat(tableName).isEqualTo(tableNames[i]);
}
}