Java 类org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:JpaPropertiesTests.java   
@Test
public void hibernate4NoCustomNamingStrategy() throws Exception {
    JpaProperties properties = load(HibernateVersion.V4);
    Map<String, String> hibernateProperties = properties
            .getHibernateProperties(mockStandaloneDataSource());
    assertThat(hibernateProperties).contains(entry("hibernate.ejb.naming_strategy",
            SpringNamingStrategy.class.getName()));
    assertThat(hibernateProperties).doesNotContainKeys(
            "hibernate.implicit_naming_strategy",
            "hibernate.physical_naming_strategy");
}
项目:spring-boot-concourse    文件:JpaPropertiesTests.java   
@Test
public void hibernate4NoCustomNamingStrategy() throws Exception {
    JpaProperties properties = load(HibernateVersion.V4);
    Map<String, String> hibernateProperties = properties
            .getHibernateProperties(mockStandaloneDataSource());
    assertThat(hibernateProperties).contains(entry("hibernate.ejb.naming_strategy",
            SpringNamingStrategy.class.getName()));
    assertThat(hibernateProperties).doesNotContainKeys(
            "hibernate.implicit_naming_strategy",
            "hibernate.physical_naming_strategy");
}