From 1fcb374d40a3213027c4b7f46e3469678c15cd0b Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 30 May 2018 15:03:11 -0400 Subject: [PATCH] Test fixes --- .../QuestionnaireResponseValidatorR4Test.java | 35 +------------------ 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/QuestionnaireResponseValidatorR4Test.java b/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/QuestionnaireResponseValidatorR4Test.java index 88deba53264..11c23a34400 100644 --- a/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/QuestionnaireResponseValidatorR4Test.java +++ b/hapi-fhir-validation/src/test/java/org/hl7/fhir/r4/validation/QuestionnaireResponseValidatorR4Test.java @@ -451,6 +451,7 @@ public class QuestionnaireResponseValidatorR4Test { assertThat(errors.getMessages(), empty()); } + @Test public void testMissingRequiredAnswer() { Questionnaire q = new Questionnaire(); q.addItem().setLinkId("link0") @@ -691,40 +692,6 @@ public class QuestionnaireResponseValidatorR4Test { assertThat(errors.toString(), containsString("No issues")); } - // @Test - public void validateHealthConnexExample() throws Exception { - String input = IOUtils.toString(QuestionnaireResponseValidatorR4Test.class.getResourceAsStream("/questionnaireanswers-0f431c50ddbe4fff8e0dd6b7323625fc.xml")); - - QuestionnaireResponse qa = ourCtx.newXmlParser().parseResource(QuestionnaireResponse.class, input); - ValidationResult errors = myVal.validateWithResult(qa); - assertEquals(errors.toString(), 0, errors.getMessages().size()); - - /* - * Now change a coded value - */ - //@formatter:off - input = input.replaceAll( - "\n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " ", - "\n" + - " \n" + - " \n" + - " \n" + - " \n" + - " \n" + - " "); - assertThat(input, containsString("GGG")); - //@formatter:on - - qa = ourCtx.newXmlParser().parseResource(QuestionnaireResponse.class, input); - errors = myVal.validateWithResult(qa); - assertEquals(errors.toString(), 10, errors.getMessages().size()); - } @AfterClass public static void afterClassClearContext() {