From: markt Date: Thu, 28 Jul 2011 12:50:04 +0000 (+0000) Subject: Catch less specific exception to deal with intermittent failures with OpenJDK X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=38c605b8d461fc031e678e2750d3f4804f1bda2c;p=tomcat7.0 Catch less specific exception to deal with intermittent failures with OpenJDK git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1151825 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/tomcat/util/net/TestCustomSsl.java b/test/org/apache/tomcat/util/net/TestCustomSsl.java index 6f3c482ff..0cdaf6b9b 100644 --- a/test/org/apache/tomcat/util/net/TestCustomSsl.java +++ b/test/org/apache/tomcat/util/net/TestCustomSsl.java @@ -19,7 +19,7 @@ package org.apache.tomcat.util.net; import java.io.File; import java.net.SocketException; -import javax.net.ssl.SSLHandshakeException; +import javax.net.ssl.SSLException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -139,7 +139,7 @@ public class TestCustomSsl extends TomcatBaseTest { fail(se.getMessage()); se.printStackTrace(); } - } catch (SSLHandshakeException he) { + } catch (SSLException he) { if (serverTrustAll) { fail(he.getMessage()); he.printStackTrace();