Drop redundant tests
@@ -48,24 +48,6 @@ public class FhirAutoConfigurationTest {
assertThat(this.context.getBeansOfType(FhirContext.class)).hasSize(1);
}
- @Test
- public void withFhirVersion() throws Exception {
- load(Arrays.array(EmbeddedDataSourceConfiguration.class,
- HibernateJpaAutoConfiguration.class,
- FhirAutoConfiguration.class),
- "hapi.fhir.version:DSTU3", "spring.jpa.properties.hibernate.search.default.indexBase:target/lucenefiles",
- "spring.jpa.properties.hibernate.search.model_mapping:ca.uhn.fhir.jpa.search.LuceneSearchMappingFactory");
- assertThat(this.context.getBean(FhirContext.class).getVersion()).isEqualTo(FhirVersionEnum.DSTU3.getVersionImplementation());
-
- load(Arrays.array(EmbeddedDataSourceConfiguration.class,
- HibernateJpaAutoConfiguration.class,
- FhirAutoConfiguration.class),
- "hapi.fhir.version:R4",
- "spring.jpa.properties.hibernate.search.default.indexBase:target/lucenefiles",
- "spring.jpa.properties.hibernate.search.model_mapping:ca.uhn.fhir.jpa.search.LuceneSearchMappingFactory");
- assertThat(this.context.getBean(FhirContext.class).getVersion()).isEqualTo(FhirVersionEnum.R4.getVersionImplementation());
- }
-
@Test
public void withRestfulServer() {
load("hapi.fhir.server.path:/hapi-fhir/*");
@@ -74,17 +56,6 @@ public class FhirAutoConfigurationTest {
assertThat(this.context.getBean(ServletRegistrationBean.class).getUrlMappings()).contains("/hapi-fhir/*");
}
- @Test
- public void withJpaServer() {
- load(Arrays.array(EmbeddedDataSourceConfiguration.class,
- HibernateJpaAutoConfiguration.class,
- FhirAutoConfiguration.class),
- "hapi.fhir.version:DSTU3", "spring.jpa.properties.hibernate.search.default.indexBase:target/lucenefiles", "spring.jpa.properties.hibernate.search.model_mapping:ca.uhn.fhir.jpa.search.LuceneSearchMappingFactory");
-
- assertThat(this.context.getBeansOfType(DaoConfig.class)).hasSize(1);
- assertThat(this.context.getBeansOfType(Dstu3.class)).hasSize(1);
- }
-
@Test
public void withNoValidation() {
load("hapi.fhir.validation.enabled:false");
