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

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


The following commit(s) were added to refs/heads/main by this push:
     new 0829951  CAMEL-17675: camel-core - Rest DSL remove support for using 
inlined routes.
0829951 is described below

commit 0829951932ff900a3294a689a9af8e5772cca84b
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Feb 22 17:33:24 2022 +0100

    CAMEL-17675: camel-core - Rest DSL remove support for using inlined routes.
---
 .../component/servlet/springboot/test/ServletHttpMessageTest.java  | 4 +++-
 .../springboot/test/ServletMappingAutoConfigurationTest.java       | 5 +++--
 .../servlet/springboot/test/ServletMappingDisablingTest.java       | 5 +++--
 .../java/org/apache/camel/spring/boot/issues/RestDslPostTest.java  | 7 +++----
 4 files changed, 12 insertions(+), 9 deletions(-)

diff --git 
a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java
 
b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java
index 77c9c3d..3fe8720 100644
--- 
a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java
+++ 
b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletHttpMessageTest.java
@@ -53,7 +53,9 @@ public class ServletHttpMessageTest {
 
                 rest().get("/outMessageNullBody")
                         .produces("text/plain")
-                        .route()
+                        .to("direct:nullbody");
+
+                from("direct:nullbody")
                         // read body at least once
                         .log("${body}")
                         // simulate endpoints that may put null to out message 
body
diff --git 
a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java
 
b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java
index df5c67b..ace399e 100644
--- 
a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java
+++ 
b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingAutoConfigurationTest.java
@@ -52,8 +52,9 @@ public class ServletMappingAutoConfigurationTest {
             public void configure() throws Exception {
 
                 rest().get("/thepath")
-                        .produces("text/plain")
-                        .route()
+                        .produces("text/plain").to("direct:hello");
+
+                from("direct:hello")
                         .transform().constant("Hello");
             }
         });
diff --git 
a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java
 
b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java
index 857c45d..3fdebe0 100644
--- 
a/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java
+++ 
b/components-starter/camel-servlet-starter/src/test/java/org/apache/camel/component/servlet/springboot/test/ServletMappingDisablingTest.java
@@ -54,8 +54,9 @@ public class ServletMappingDisablingTest {
             public void configure() throws Exception {
 
                 rest().get("/thepath")
-                        .produces("text/plain")
-                        .route()
+                        .produces("text/plain").to("direct:hello");
+
+                from("direct:hello")
                         .transform().constant("Hello");
             }
         });
diff --git 
a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java
 
b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java
index 5ba786a..18e3799 100644
--- 
a/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java
+++ 
b/core/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/RestDslPostTest.java
@@ -79,7 +79,6 @@ public class RestDslPostTest {
 
         resultEndpointCountry.assertIsSatisfied();
         resultEndpointUser.assertIsSatisfied();
-
     }
 
     @Configuration
@@ -90,9 +89,9 @@ public class RestDslPostTest {
                 public void configure() {
                     
restConfiguration().host("localhost").port(PORT).bindingMode(RestBindingMode.json);
 
-                    
rest("/").post("/user").type(UserPojo.class).route().to("mock:user").endRest().post("/country")
-                            
.type(CountryPojo.class).route().to("mock:country").endRest();
-
+                    rest("/")
+                            .post("/user").type(UserPojo.class).to("mock:user")
+                            
.post("/country").type(CountryPojo.class).to("mock:country");
                 }
             };
         }

Reply via email to