This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 44b2264931 Add missing assert.
44b2264931 is described below
commit 44b22649310547d159e4756269f66d1ed95bd6ba
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]