OracleNamingStrategy extends ImprovedNamingStrategy { @Override public String classToTableName(String className) { return super.classToTableName(className).toUpperCase(); }  @Override String classToTableName(String className); @Override String propertyToColumnName(String propertyName); @Override String tableName(String tableName); @Override String columnName(String columnName);  }
@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]); } }
@Test public void oracleNaming_ClassToTableName() { OracleNamingStrategy namingStrategy = new OracleNamingStrategy(); for (int i = 0; i < classNames.length; i++) { String tableName = namingStrategy.classToTableName(classNames[i]); assertThat(tableName).isEqualTo(tableNames[i].toUpperCase()); } }
@Test public void improvedNaming_ClassToTableName() { ImprovedNamingStrategy improvedNamingStrategy = new ImprovedNamingStrategy(); for (int i = 0; i < classNames.length; i++) { Assert.assertEquals(tableNames[i], improvedNamingStrategy.classToTableName(classNames[i])); } }
@Test public void oracleNaming_ClassToTableName() { OracleNamingStrategy oracleNamingStrategy = new OracleNamingStrategy(); for (int i = 0; i < classNames.length; i++) { Assert.assertEquals(tableNames[i].toUpperCase(), oracleNamingStrategy.classToTableName(classNames[i])); } }