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

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


The following commit(s) were added to refs/heads/camel-3.11.x by this push:
     new ca3dd08  CAMEL-16718: fix camel-netty-http test case
ca3dd08 is described below

commit ca3dd08414d1210f19b3bdc71793720b46b56d0f
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Oct 6 11:37:41 2021 +0200

    CAMEL-16718: fix camel-netty-http test case
    
    The fix for the CAMEL-16718 changed the exception returned
    (commit ref: 4845cf938e423355ea96ed7a3e1942fcceac2de3), so now the
    SSLHandshakeException is not on the cause of the original exception, but
    instead is the exception itself.
---
 .../camel/component/netty/http/NettyHttpSSLHandshakeErrorTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLHandshakeErrorTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLHandshakeErrorTest.java
index 30e0abf..5cb2aa8 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLHandshakeErrorTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpSSLHandshakeErrorTest.java
@@ -60,8 +60,8 @@ public class NettyHttpSSLHandshakeErrorTest extends 
BaseNettyTest {
         Exception ex = response.getException();
 
         assertTrue(response.isFailed(), "should have failed");
-        assertNotNull(ex.getCause());
-        assertEquals(javax.net.ssl.SSLHandshakeException.class, 
ex.getCause().getClass(), "exception expected");
+        assertNotNull(ex);
+        assertEquals(javax.net.ssl.SSLHandshakeException.class, ex.getClass(), 
"SSLHandshakeException expected");
 
         assertMockEndpointsSatisfied();
     }

Reply via email to