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

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

commit 41dd865b46591f5fb98f7bd2d6236597312b0581
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Fri Mar 8 15:09:21 2024 +0100

    fixed Rest - inlining requires unique routes
---
 integration-tests/rest/pom.xml                     |  4 ++++
 .../quarkus/component/rest/it/RestRoutes.java      | 26 +++++++++++-----------
 2 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/integration-tests/rest/pom.xml b/integration-tests/rest/pom.xml
index a9d407008a..de76b46bbe 100644
--- a/integration-tests/rest/pom.xml
+++ b/integration-tests/rest/pom.xml
@@ -59,6 +59,10 @@
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-rest</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-seda</artifactId>
+        </dependency>
         <dependency>
             <groupId>io.quarkus</groupId>
             <artifactId>quarkus-resteasy-jsonb</artifactId>
diff --git 
a/integration-tests/rest/src/main/java/org/apache/camel/quarkus/component/rest/it/RestRoutes.java
 
b/integration-tests/rest/src/main/java/org/apache/camel/quarkus/component/rest/it/RestRoutes.java
index ea6254c9a7..4bd328713c 100644
--- 
a/integration-tests/rest/src/main/java/org/apache/camel/quarkus/component/rest/it/RestRoutes.java
+++ 
b/integration-tests/rest/src/main/java/org/apache/camel/quarkus/component/rest/it/RestRoutes.java
@@ -42,29 +42,29 @@ public class RestRoutes extends RouteBuilder {
         rest("/rest")
                 .delete()
                 .produces("text/plain")
-                .to("direct:echoMethodPath")
+                .to("seda:echoMethodPath")
 
                 .get()
                 .produces("text/plain")
-                .to("direct:echoMethodPath")
+                .to("seda:echoMethodPath")
 
                 .head()
-                .to("direct:contentTypeText")
+                .to("seda:contentTypeText")
 
                 .patch()
                 .consumes("text/plain")
                 .produces("text/plain")
-                .to("direct:echoBodyPath")
+                .to("seda:echoBodyPath")
 
                 .post()
                 .consumes("text/plain")
                 .produces("text/plain")
-                .to("direct:echoBodyPath")
+                .to("seda:echoBodyPath")
 
                 .put()
                 .consumes("text/plain")
                 .produces("text/plain")
-                .to("direct:echoBodyPath")
+                .to("seda:echoBodyPath")
 
                 .post("/validation")
                 .clientRequestValidation(true)
@@ -81,7 +81,7 @@ public class RestRoutes extends RouteBuilder {
                 .bindingMode(RestBindingMode.json)
                 .type(Person.class)
                 .produces(MediaType.TEXT_PLAIN)
-                .to("direct:personString")
+                .to("seda:personString")
 
                 .get("/binding/json/producer")
                 .to("direct:personJson")
@@ -90,7 +90,7 @@ public class RestRoutes extends RouteBuilder {
                 .bindingMode(RestBindingMode.xml)
                 .type(Person.class)
                 .produces(MediaType.TEXT_PLAIN)
-                .to("direct:personString")
+                .to("seda:personString")
 
                 .get("/binding/xml/producer")
                 .to("direct:personXml")
@@ -99,15 +99,15 @@ public class RestRoutes extends RouteBuilder {
                 .to("direct:hello")
 
                 .verb("head", "/custom/verb")
-                .to("direct:contentTypeText")
+                .to("seda:contentTypeText")
 
                 .post("/multipart/upload")
                 .to("direct:processAttachments");
 
-        from("direct:echoMethodPath")
+        from("seda:echoMethodPath")
                 .setBody().simple("${header.CamelHttpMethod}: 
${header.CamelHttpPath}");
 
-        from("direct:echoBodyPath")
+        from("seda:echoBodyPath")
                 .setBody().simple("${body}: ${header.CamelHttpPath}");
 
         from("direct:greetWithBody")
@@ -119,7 +119,7 @@ public class RestRoutes extends RouteBuilder {
         from("direct:hello")
                 .log("Hello ${body}");
 
-        from("direct:personString")
+        from("seda:personString")
                 .setHeader(Exchange.CONTENT_TYPE, constant("text/plain"))
                 .setBody().simple("Name: ${body.firstName} ${body.lastName}, 
Age: ${body.age}");
 
@@ -129,7 +129,7 @@ public class RestRoutes extends RouteBuilder {
         from("direct:personXml")
                 .setBody().constant(PERSON_XML);
 
-        from("direct:contentTypeText")
+        from("seda:contentTypeText")
                 .setHeader(Exchange.CONTENT_TYPE).constant("text/plain");
 
         from("direct:processAttachments")

Reply via email to