File tree Expand file tree Collapse file tree
test/org/apache/tomcat/util/net/ocsp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 */
1717package org .apache .tomcat .util .net .ocsp ;
1818
19+ import java .net .SocketException ;
1920import java .util .ArrayList ;
2021import java .util .Collection ;
2122import java .util .List ;
@@ -111,7 +112,7 @@ public void test() throws Exception {
111112 if (handshakeFailureExpected ) {
112113 Assert .fail ("Handshake did not fail when expected to do so." );
113114 }
114- } catch (SSLHandshakeException e ) {
115+ } catch (SSLHandshakeException | SocketException e ) {
115116 if (!handshakeFailureExpected ) {
116117 Assert .fail ("Handshake failed when not expected to do so." );
117118 }
Original file line number Diff line number Diff line change 1616 */
1717package org .apache .tomcat .util .net .ocsp ;
1818
19+ import java .net .SocketException ;
1920import java .util .ArrayList ;
2021import java .util .Collection ;
2122import java .util .List ;
@@ -101,7 +102,7 @@ public void test() throws Exception {
101102 if (handshakeFailureExpected ) {
102103 Assert .fail ("Handshake did not fail when expected to do so." );
103104 }
104- } catch (SSLHandshakeException e ) {
105+ } catch (SSLHandshakeException | SocketException e ) {
105106 if (!handshakeFailureExpected ) {
106107 Assert .fail ("Handshake failed when not expected to do so." );
107108 }
Original file line number Diff line number Diff line change 1616 */
1717package org .apache .tomcat .util .net .ocsp ;
1818
19+ import java .net .SocketException ;
1920import java .util .ArrayList ;
2021import java .util .Collection ;
2122import java .util .List ;
@@ -101,7 +102,7 @@ public void test() throws Exception {
101102 if (handshakeFailureExpected ) {
102103 Assert .fail ("Handshake did not fail when expected to do so." );
103104 }
104- } catch (SSLHandshakeException e ) {
105+ } catch (SSLHandshakeException | SocketException e ) {
105106 if (!handshakeFailureExpected ) {
106107 Assert .fail ("Handshake failed when not expected to do so." );
107108 }
You can’t perform that action at this time.
0 commit comments