8017157: catch more exception in test RejectClientRenego

Reviewed-by: vinnie
This commit is contained in:
Xue-Lei Andrew Fan 2013-06-20 07:48:49 -07:00
parent 338bfbd857
commit b0246ef1ae

View File

@ -131,7 +131,7 @@ public class RejectClientRenego implements
sslOS.flush(); sslOS.flush();
} }
throw new Exception("Not reject client initialized renegotiation"); throw new Exception("Not reject client initialized renegotiation");
} catch (SSLHandshakeException she) { } catch (IOException ioe) {
System.out.println("Got the expected exception"); System.out.println("Got the expected exception");
} finally { } finally {
sslSocket.close(); sslSocket.close();
@ -181,7 +181,7 @@ public class RejectClientRenego implements
sslIS.read(); sslIS.read();
} }
throw new Exception("Not reject client initialized renegotiation"); throw new Exception("Not reject client initialized renegotiation");
} catch (SSLHandshakeException she) { } catch (IOException ioe) {
System.out.println("Got the expected exception"); System.out.println("Got the expected exception");
} finally { } finally {
sslSocket.close(); sslSocket.close();