Drop redundant tests
This commit is contained in:
parent
cbb16ce3af
commit
5a8fb5dd01
|
@ -48,24 +48,6 @@ public class FhirAutoConfigurationTest {
|
||||||
assertThat(this.context.getBeansOfType(FhirContext.class)).hasSize(1);
|
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
|
@Test
|
||||||
public void withRestfulServer() {
|
public void withRestfulServer() {
|
||||||
load("hapi.fhir.server.path:/hapi-fhir/*");
|
load("hapi.fhir.server.path:/hapi-fhir/*");
|
||||||
|
@ -74,17 +56,6 @@ public class FhirAutoConfigurationTest {
|
||||||
assertThat(this.context.getBean(ServletRegistrationBean.class).getUrlMappings()).contains("/hapi-fhir/*");
|
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
|
@Test
|
||||||
public void withNoValidation() {
|
public void withNoValidation() {
|
||||||
load("hapi.fhir.validation.enabled:false");
|
load("hapi.fhir.validation.enabled:false");
|
||||||
|
|
Loading…
Reference in New Issue