From a2954ef1811ddf90aec1fb3f05f1008032db83ae Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Mon, 30 May 2016 06:57:01 -0400 Subject: [PATCH] Fix build --- .../test/java/ca/uhn/fhir/rest/server/ValidateDstu3Test.java | 2 +- .../java/ca/uhn/fhir/rest/server/ValidateHl7OrgDstu2Test.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/ValidateDstu3Test.java b/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/ValidateDstu3Test.java index c03b73bb4aa..0df8e26b752 100644 --- a/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/ValidateDstu3Test.java +++ b/hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/rest/server/ValidateDstu3Test.java @@ -179,7 +179,7 @@ public class ValidateDstu3Test { Parameters params = new Parameters(); params.addParameter().setName("resource").setResource(patient); params.addParameter().setName("profile").setValue(new StringType("http://foo")); - params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.name())); + params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.getCode())); HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient/$validate"); httpPost.setEntity(new StringEntity(ourCtx.newXmlParser().encodeResourceToString(params), ContentType.create(Constants.CT_FHIR_XML, "UTF-8"))); diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/ValidateHl7OrgDstu2Test.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/ValidateHl7OrgDstu2Test.java index fdb9b9a9691..df0f4ae9e2d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/ValidateHl7OrgDstu2Test.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/rest/server/ValidateHl7OrgDstu2Test.java @@ -70,7 +70,7 @@ public class ValidateHl7OrgDstu2Test { Parameters params = new Parameters(); params.addParameter().setName("resource").setResource(patient); params.addParameter().setName("profile").setValue(new StringType("http://foo")); - params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.name())); + params.addParameter().setName("mode").setValue(new StringType(ValidationModeEnum.CREATE.getCode())); HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient/$validate"); httpPost.setEntity(new StringEntity(ourCtx.newXmlParser().encodeResourceToString(params), ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));