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 2026/03/20 05:32:30 UTC
(camel) branch misc-test-fixes created (now 74e36c6707b1)
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a change to branch misc-test-fixes
in repository https://gitbox.apache.org/repos/asf/camel.git
at 74e36c6707b1 CAMEL-23214: Harden NettyHttpSSLHandshakeErrorTest against Netty exception wrapping
This branch includes the following new commits:
new 74e36c6707b1 CAMEL-23214: Harden NettyHttpSSLHandshakeErrorTest against Netty exception wrapping
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel) 01/01: CAMEL-23214: Harden NettyHttpSSLHandshakeErrorTest against Netty exception wrapping
Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch misc-test-fixes
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 74e36c6707b11ab9f0061c54519b9ac89c80e106
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Mar 20 06:32:17 2026 +0100
CAMEL-23214: Harden NettyHttpSSLHandshakeErrorTest against Netty exception wrapping
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
.../camel/component/netty/http/NettyHttpSSLHandshakeErrorTest.java | 7 +++++--
1 file changed, 5 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 29e1fd32527f..9eb2f11668ba 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
@@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.condition.DisabledOnOs;
-import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -62,7 +61,11 @@ public class NettyHttpSSLHandshakeErrorTest extends BaseNettyTestSupport {
assertTrue(response.isFailed(), "should have failed");
assertNotNull(ex);
- assertEquals(javax.net.ssl.SSLHandshakeException.class, ex.getClass(), "SSLHandshakeException expected");
+ // Netty may wrap SSLHandshakeException in DecoderException
+ boolean isSslError = ex instanceof javax.net.ssl.SSLHandshakeException
+ || (ex.getCause() instanceof javax.net.ssl.SSLHandshakeException);
+ assertTrue(isSslError,
+ "Expected SSLHandshakeException (possibly wrapped) but got: " + ex.getClass().getName());
MockEndpoint.assertIsSatisfied(context);
}