You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2023/09/14 07:39:38 UTC

[camel-spring-boot] branch CAMEL-19867/fix-FhirUpdateIT created (now e481b2671a8)

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a change to branch CAMEL-19867/fix-FhirUpdateIT
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


      at e481b2671a8 Upgrade failing test to FHIR 6.6.1

This branch includes the following new commits:

     new e481b2671a8 Upgrade failing test to FHIR 6.6.1

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-spring-boot] 01/01: Upgrade failing test to FHIR 6.6.1

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch CAMEL-19867/fix-FhirUpdateIT
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit e481b2671a8bd97b433366bf67abf3c1ae7d4011
Author: Federico Mariani <34...@users.noreply.github.com>
AuthorDate: Tue Sep 12 11:05:37 2023 +0200

    Upgrade failing test to FHIR 6.6.1
---
 .../src/test/java/org/apache/camel/component/fhir/FhirUpdateIT.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/components-starter/camel-fhir-starter/src/test/java/org/apache/camel/component/fhir/FhirUpdateIT.java b/components-starter/camel-fhir-starter/src/test/java/org/apache/camel/component/fhir/FhirUpdateIT.java
index c1056cc0bb2..3e3c3e072dc 100644
--- a/components-starter/camel-fhir-starter/src/test/java/org/apache/camel/component/fhir/FhirUpdateIT.java
+++ b/components-starter/camel-fhir-starter/src/test/java/org/apache/camel/component/fhir/FhirUpdateIT.java
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.component.fhir;
 
-import java.net.URLEncoder;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.HashMap;
@@ -164,7 +163,7 @@ public class FhirUpdateIT extends AbstractFhirTestSupport {
         Date date = new SimpleDateFormat("yyyy-MM-dd").parse("1998-04-29");
         assertNotEquals(date, patient.getBirthDate());
         this.patient.setBirthDate(date);
-        String url = "Patient?" + Patient.SP_IDENTIFIER + '=' + URLEncoder.encode(this.patient.getId(), "UTF-8");
+        String url = "Patient?" + Patient.SP_RES_ID + '=' + patient.getIdPart();
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is org.hl7.fhir.instance.model.api.IBaseResource
         headers.put("CamelFhir.resource", this.patient);
@@ -185,7 +184,7 @@ public class FhirUpdateIT extends AbstractFhirTestSupport {
         Date date = new SimpleDateFormat("yyyy-MM-dd").parse("1998-04-29");
         assertNotEquals(date, patient.getBirthDate());
         this.patient.setBirthDate(date);
-        String url = "Patient?" + Patient.SP_IDENTIFIER + '=' + URLEncoder.encode(this.patient.getId(), "UTF-8");
+        String url = "Patient?" + Patient.SP_RES_ID + '=' + patient.getIdPart();
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is org.hl7.fhir.instance.model.api.IBaseResource
         headers.put("CamelFhir.resourceAsString", this.fhirContext.newJsonParser().encodeResourceToString(this.patient));