Catch less specific exception to deal with intermittent failures with OpenJDK
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 28 Jul 2011 12:50:04 +0000 (12:50 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 28 Jul 2011 12:50:04 +0000 (12:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1151825 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/tomcat/util/net/TestCustomSsl.java

index 6f3c482..0cdaf6b 100644 (file)
@@ -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();