Still trying to get travis working!
This commit is contained in:
parent
50a9995c55
commit
cabdde8914
|
@ -66,7 +66,7 @@ public class BaseDstu21Config extends BaseConfig {
|
|||
}
|
||||
|
||||
@Bean(name = "myJpaValidationSupportDstu21", autowire = Autowire.BY_NAME)
|
||||
public static ca.uhn.fhir.jpa.dao.IJpaValidationSupportDstu21 jpaValidationSupportDstu21() {
|
||||
public ca.uhn.fhir.jpa.dao.IJpaValidationSupportDstu21 jpaValidationSupportDstu21() {
|
||||
ca.uhn.fhir.jpa.dao.JpaValidationSupportDstu21 retVal = new ca.uhn.fhir.jpa.dao.JpaValidationSupportDstu21();
|
||||
return retVal;
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ public class BaseDstu21Config extends BaseConfig {
|
|||
}
|
||||
|
||||
@Bean
|
||||
public static IValidationSupport validationSupportChainDstu21() {
|
||||
public IValidationSupport validationSupportChainDstu21() {
|
||||
return new ValidationSupportChain(new DefaultProfileValidationSupport(), jpaValidationSupportDstu21());
|
||||
// return new ValidationSupportChain();
|
||||
}
|
||||
|
|
|
@ -57,6 +57,11 @@ public class JpaValidationSupportDstu21 implements IJpaValidationSupportDstu21 {
|
|||
@Qualifier("myFhirContextDstu21")
|
||||
private FhirContext myDstu21Ctx;
|
||||
|
||||
public JpaValidationSupportDstu21() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ValueSetExpansionComponent expandValueSet(FhirContext theCtx, ConceptSetComponent theInclude) {
|
||||
return null;
|
||||
|
|
|
@ -44,20 +44,6 @@ public class TestDstu21Config extends BaseJavaConfigDstu21 {
|
|||
@Value("${fhir.lucene.location.dstu21}")
|
||||
private String myFhirLuceneLocation;
|
||||
|
||||
@Autowired
|
||||
private ApplicationContext myApplicationCtx;
|
||||
|
||||
@PostConstruct
|
||||
public void postConstruct() {
|
||||
IValidatorModule next = myApplicationCtx.getBean("myQuestionnaireResponseValidatorDstu21", IValidatorModule.class);
|
||||
requestValidatingInterceptor().addValidatorModule(next);
|
||||
responseValidatingInterceptor().addValidatorModule(next);
|
||||
|
||||
next = myApplicationCtx.getBean("myInstanceValidatorDstu21", IValidatorModule.class);
|
||||
requestValidatingInterceptor().addValidatorModule(next);
|
||||
responseValidatingInterceptor().addValidatorModule(next);
|
||||
}
|
||||
|
||||
@Bean()
|
||||
public DaoConfig daoConfig() {
|
||||
DaoConfig retVal = new DaoConfig();
|
||||
|
@ -117,6 +103,8 @@ public class TestDstu21Config extends BaseJavaConfigDstu21 {
|
|||
requestValidator.setFailOnSeverity(ResultSeverityEnum.ERROR);
|
||||
requestValidator.setAddResponseHeaderOnSeverity(null);
|
||||
requestValidator.setAddResponseOutcomeHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
|
||||
requestValidator.addValidatorModule(questionnaireResponseValidatorDstu21());
|
||||
requestValidator.addValidatorModule(instanceValidatorDstu21());
|
||||
|
||||
return requestValidator;
|
||||
}
|
||||
|
@ -141,6 +129,8 @@ public class TestDstu21Config extends BaseJavaConfigDstu21 {
|
|||
responseValidator.addExcludeOperationType(RestOperationTypeEnum.HISTORY_TYPE);
|
||||
responseValidator.addExcludeOperationType(RestOperationTypeEnum.SEARCH_SYSTEM);
|
||||
responseValidator.addExcludeOperationType(RestOperationTypeEnum.SEARCH_TYPE);
|
||||
responseValidator.addValidatorModule(questionnaireResponseValidatorDstu21());
|
||||
responseValidator.addValidatorModule(instanceValidatorDstu21());
|
||||
return responseValidator;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue