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 e91ee33e260 CAMEL-18071 Fix camel-http-platform-starter compilation 
problem in test module (#555)
e91ee33e260 is described below

commit e91ee33e2601a0ef90ed565044bb436a633a00ba
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Sat May 7 09:56:57 2022 +0200

    CAMEL-18071 Fix camel-http-platform-starter compilation problem in test 
module (#555)
---
 .../camel/component/platform/http/springboot/PlatformHttpTest.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/PlatformHttpTest.java
 
b/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/PlatformHttpTest.java
index 8009c87c155..4a60d9e75b1 100644
--- 
a/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/PlatformHttpTest.java
+++ 
b/components-starter/camel-platform-http-starter/src/test/java/org/apache/camel/component/platform/http/springboot/PlatformHttpTest.java
@@ -23,6 +23,7 @@ import java.util.Iterator;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.platform.http.HttpEndpointModel;
 import org.apache.camel.component.platform.http.PlatformHttpComponent;
 import org.apache.camel.component.platform.http.PlatformHttpConstants;
 import org.apache.camel.spring.boot.CamelAutoConfiguration;
@@ -115,9 +116,9 @@ public class PlatformHttpTest {
 
         PlatformHttpComponent phc = context.getComponent("platform-http", 
PlatformHttpComponent.class);
         assertEquals(2, phc.getHttpEndpoints().size());
-        Iterator<String> it = phc.getHttpEndpoints().iterator();
-        assertEquals("/get", it.next());
-        assertEquals("/post", it.next());
+        Iterator<HttpEndpointModel> it = phc.getHttpEndpoints().iterator();
+        assertEquals("/get", it.next().getUri());
+        assertEquals("/post", it.next().getUri());
     }
 
 

Reply via email to