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

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new fe0f91a3f7 Add missing assert.
fe0f91a3f7 is described below

commit fe0f91a3f714d96ca67b1f5dc912c81880a3ba1d
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jun 18 08:57:43 2026 +0100

    Add missing assert.
---
 test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java 
b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
index ba33e26bc1..06ab3b9a1d 100644
--- a/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
+++ b/test/org/apache/tomcat/util/net/TestSslHandshakeFailure.java
@@ -26,6 +26,7 @@ import javax.net.ssl.HttpsURLConnection;
 import javax.net.ssl.SSLContext;
 import javax.net.ssl.SSLHandshakeException;
 
+import org.junit.Assert;
 import org.junit.Test;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameter;
@@ -79,6 +80,7 @@ public class TestSslHandshakeFailure extends TomcatBaseTest {
 
         try {
             getUrl("https://localhost:"; + getPort() + "/");
+            Assert.fail("SSLHandshakeException expected, but handshake did not 
fail");
         } catch (SSLHandshakeException t) {
             // Expected
         } catch (SocketException e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to