HTTPCLIENT-1606: expect a more generic SSLException instead of a SSLHandshakeException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1658153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1fa1a94c38
commit
213d5b1871
|
@ -37,7 +37,6 @@ import java.util.concurrent.TimeUnit;
|
|||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLException;
|
||||
import javax.net.ssl.SSLHandshakeException;
|
||||
import javax.net.ssl.SSLServerSocket;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
|
@ -195,7 +194,7 @@ public class TestSSLSocketFactory {
|
|||
}
|
||||
}
|
||||
|
||||
@Test(expected=SSLHandshakeException.class)
|
||||
@Test(expected=SSLException.class)
|
||||
public void testSSLTrustVerification() throws Exception {
|
||||
this.server = ServerBootstrap.bootstrap()
|
||||
.setServerInfo(LocalServerTestBase.ORIGIN)
|
||||
|
|
Loading…
Reference in New Issue