|
|
|
@ -381,7 +381,7 @@ class HibernateJpaAutoConfigurationTests extends AbstractJpaAutoConfigurationTes |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
void vendorPropertiesWithDdlAutoPropertyIsSet() { |
|
|
|
void vendorPropertiesWhenDdlAutoPropertyIsSet() { |
|
|
|
contextRunner().withPropertyValues("spring.jpa.hibernate.ddl-auto=update") |
|
|
|
contextRunner().withPropertyValues("spring.jpa.hibernate.ddl-auto=update") |
|
|
|
.run(vendorProperties((vendorProperties) -> { |
|
|
|
.run(vendorProperties((vendorProperties) -> { |
|
|
|
assertThat(vendorProperties).doesNotContainKeys(AvailableSettings.HBM2DDL_DATABASE_ACTION); |
|
|
|
assertThat(vendorProperties).doesNotContainKeys(AvailableSettings.HBM2DDL_DATABASE_ACTION); |
|
|
|
@ -390,7 +390,7 @@ class HibernateJpaAutoConfigurationTests extends AbstractJpaAutoConfigurationTes |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
void vendorPropertiesWithDdlAutoPropertyAndHibernatePropertiesAreSet() { |
|
|
|
void vendorPropertiesWhenDdlAutoPropertyAndHibernatePropertiesAreSet() { |
|
|
|
contextRunner() |
|
|
|
contextRunner() |
|
|
|
.withPropertyValues("spring.jpa.hibernate.ddl-auto=update", |
|
|
|
.withPropertyValues("spring.jpa.hibernate.ddl-auto=update", |
|
|
|
"spring.jpa.properties.hibernate.hbm2ddl.auto=create-drop") |
|
|
|
"spring.jpa.properties.hibernate.hbm2ddl.auto=create-drop") |
|
|
|
@ -401,7 +401,7 @@ class HibernateJpaAutoConfigurationTests extends AbstractJpaAutoConfigurationTes |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
void vendorPropertiesWithDdlAutoPropertyIsSetToNone() { |
|
|
|
void vendorPropertiesWhenDdlAutoPropertyIsSetToNone() { |
|
|
|
contextRunner().withPropertyValues("spring.jpa.hibernate.ddl-auto=none") |
|
|
|
contextRunner().withPropertyValues("spring.jpa.hibernate.ddl-auto=none") |
|
|
|
.run(vendorProperties((vendorProperties) -> assertThat(vendorProperties).doesNotContainKeys( |
|
|
|
.run(vendorProperties((vendorProperties) -> assertThat(vendorProperties).doesNotContainKeys( |
|
|
|
AvailableSettings.HBM2DDL_DATABASE_ACTION, AvailableSettings.HBM2DDL_AUTO))); |
|
|
|
AvailableSettings.HBM2DDL_DATABASE_ACTION, AvailableSettings.HBM2DDL_AUTO))); |
|
|
|
|