You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/01/12 10:53:23 UTC

[camel] branch main updated: (chores) camel-http / camel-rest: fix usage of deprecated option

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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d7291158575 (chores) camel-http / camel-rest: fix usage of deprecated option
d7291158575 is described below

commit d7291158575102e82dfa6ac31ed20e59560003ee
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 12 09:28:27 2023 +0100

    (chores) camel-http / camel-rest: fix usage of deprecated option
---
 .../camel/component/http/rest/RestCamelComponentVerifierTest.java       | 2 +-
 .../org/apache/camel/component/rest/RestComponentVerifierExtension.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-http/src/test/java/org/apache/camel/component/http/rest/RestCamelComponentVerifierTest.java b/components/camel-http/src/test/java/org/apache/camel/component/http/rest/RestCamelComponentVerifierTest.java
index 9c4fa676bde..98b846e5125 100644
--- a/components/camel-http/src/test/java/org/apache/camel/component/http/rest/RestCamelComponentVerifierTest.java
+++ b/components/camel-http/src/test/java/org/apache/camel/component/http/rest/RestCamelComponentVerifierTest.java
@@ -62,7 +62,7 @@ public class RestCamelComponentVerifierTest extends BaseHttpTest {
         verifier = component.getVerifier();
 
         parameters = new HashMap<>();
-        parameters.put("componentName", "http");
+        parameters.put("producerComponentName", "http");
         parameters.put("host", "http://localhost:" + localServer.getLocalPort());
         parameters.put("path", "verify");
     }
diff --git a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestComponentVerifierExtension.java b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestComponentVerifierExtension.java
index 3ba46ddc57f..63d2a2e6c21 100644
--- a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestComponentVerifierExtension.java
+++ b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestComponentVerifierExtension.java
@@ -81,7 +81,7 @@ public class RestComponentVerifierExtension extends DefaultComponentVerifierExte
         // componentName is required for validation even at runtime camel might
         // be able to find a suitable component at runtime.
 
-        String componentName = (String) map.get("componentName");
+        String componentName = (String) map.get("producerComponentName");
         if (ObjectHelper.isNotEmpty(componentName)) {
 
             // make a defensive copy of the parameters as we mutate the map