camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [camel] 02/11: Fix cxf tests
Date Thu, 22 Nov 2018 16:33:19 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit cf33e6597becb2fcaf0b9ea54a3c7d482f91e5b1
Author: Guillaume Nodet <gnodet@gmail.com>
AuthorDate: Fri Nov 16 15:45:00 2018 +0100

    Fix cxf tests
---
 .../org/apache/camel/component/cxf/CxfMessageHeaderTimeoutTest.java    | 3 +--
 .../src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java   | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageHeaderTimeoutTest.java
b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageHeaderTimeoutTest.java
index ac65d9d..7de0525 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageHeaderTimeoutTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfMessageHeaderTimeoutTest.java
@@ -61,8 +61,7 @@ public class CxfMessageHeaderTimeoutTest extends CamelSpringTestSupport
{
         Exchange reply = sendJaxWsMessage(endpointUri);
         Exception e = reply.getException();
         assertNotNull("We should get the exception cause here", e);
-        assertNotNull("We should get the exception cause here", e.getCause());
-        assertTrue("We should get the socket time out exception here", e.getCause() instanceof
SocketTimeoutException);
+        assertTrue("We should get the socket time out exception here", e instanceof SocketTimeoutException);
     }
 
     protected Exchange sendJaxWsMessage(String endpointUri) throws InterruptedException {
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
index 2217159..20c509a 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfTimeoutTest.java
@@ -95,8 +95,7 @@ public class CxfTimeoutTest extends CamelSpringTestSupport {
         Exchange reply = sendJaxWsMessage(endpointUri);
         Exception e = reply.getException();
         assertNotNull("We should get the exception cause here", e);
-        assertNotNull("We should get the exception cause here", e.getCause());
-        assertTrue("We should get the socket time out exception here", e.getCause() instanceof
SocketTimeoutException);
+        assertTrue("We should get the socket time out exception here", e instanceof SocketTimeoutException);
     }
 
     protected Exchange sendJaxWsMessage(String endpointUri) throws InterruptedException {


Mime
View raw message