You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2018/11/22 16:33:19 UTC
[camel] 02/11: Fix cxf tests
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 <gn...@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 {