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

[camel-spring-boot] branch camel-spring-boot-3.x updated: fix broken camel-cxf test

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

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


The following commit(s) were added to refs/heads/camel-spring-boot-3.x by this push:
     new 5f62899a4f4 fix broken camel-cxf test
5f62899a4f4 is described below

commit 5f62899a4f4e947cc5adb81ed56dcbc2851a0c5d
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Fri Oct 20 10:54:06 2023 -0400

    fix broken camel-cxf test
---
 .../apache/camel/component/cxf/soap/springboot/CxfBeanScopeTest.java  | 4 ++--
 .../component/cxf/soap/springboot/CxfMessageHeaderTimeoutTest.java    | 4 ++--
 .../apache/camel/component/cxf/soap/springboot/CxfTimeoutTest.java    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfBeanScopeTest.java b/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfBeanScopeTest.java
index 6e6b0bd4183..4a3fedf5488 100644
--- a/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfBeanScopeTest.java
+++ b/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfBeanScopeTest.java
@@ -16,7 +16,7 @@
  */
 package org.apache.camel.component.cxf.soap.springboot;
 
-import java.net.SocketTimeoutException;
+import java.net.http.HttpTimeoutException;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -131,7 +131,7 @@ public class CxfBeanScopeTest {
         Exchange reply = sendJaxWsMessage(endpointUri);
         Exception e = reply.getException();
         assertNotNull(e, "We should get the exception cause here");
-        assertTrue(e instanceof SocketTimeoutException, "We should get the socket time out exception here");
+        assertTrue(e instanceof HttpTimeoutException, "We should get the time out exception here");
     }
 
     @Autowired
diff --git a/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfMessageHeaderTimeoutTest.java b/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfMessageHeaderTimeoutTest.java
index 27dded0c7ae..3cbc16ff563 100644
--- a/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfMessageHeaderTimeoutTest.java
+++ b/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfMessageHeaderTimeoutTest.java
@@ -19,7 +19,7 @@ package org.apache.camel.component.cxf.soap.springboot;
 
 
 
-import java.net.SocketTimeoutException;
+import java.net.http.HttpTimeoutException;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -108,7 +108,7 @@ public class CxfMessageHeaderTimeoutTest {
         Exchange reply = sendJaxWsMessage(endpointUri);
         Exception e = reply.getException();
         assertNotNull(e, "We should get the exception cause here");
-        assertTrue(e instanceof SocketTimeoutException, "We should get the socket time out exception here");
+        assertTrue(e instanceof HttpTimeoutException, "We should get the time out exception here");
     }
 
     protected Exchange sendJaxWsMessage(String endpointUri) throws InterruptedException {
diff --git a/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfTimeoutTest.java b/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfTimeoutTest.java
index 80663f9ac65..9d8641cc266 100644
--- a/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfTimeoutTest.java
+++ b/components-starter/camel-cxf-soap-starter/src/test/java/org/apache/camel/component/cxf/soap/springboot/CxfTimeoutTest.java
@@ -16,7 +16,7 @@
  */
 package org.apache.camel.component.cxf.soap.springboot;
 
-import java.net.SocketTimeoutException;
+import java.net.http.HttpTimeoutException;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -124,7 +124,7 @@ public class CxfTimeoutTest {
         Exchange reply = sendJaxWsMessage(endpointUri);
         Exception e = reply.getException();
         assertNotNull(e, "We should get the exception cause here");
-        assertTrue(e instanceof SocketTimeoutException, "We should get the socket time out exception here");
+        assertTrue(e instanceof HttpTimeoutException, "We should get the time out exception here");
     }
 
     @Autowired