< prev index next >

test/java/net/httpclient/http2/ErrorTest.java

Print this page

        

*** 26,35 **** --- 26,36 ---- * @bug 8157105 * @key intermittent * @library /lib/testlibrary * @build jdk.testlibrary.SimpleSSLContext * @modules java.httpclient + * jdk.security.auth * @compile/module=java.httpclient java/net/http/BodyOutputStream.java * @compile/module=java.httpclient java/net/http/BodyInputStream.java * @compile/module=java.httpclient java/net/http/EchoHandler.java * @compile/module=java.httpclient java/net/http/Http2Handler.java * @compile/module=java.httpclient java/net/http/Http2TestExchange.java
*** 39,60 **** * @compile/module=java.httpclient java/net/http/TestUtil.java * @run testng/othervm -Djava.net.http.HttpClient.log=ssl,errors ErrorTest * @summary check exception thrown when bad TLS parameters selected */ ! import java.io.*; ! import java.net.*; ! import java.net.http.*; ! import static java.net.http.HttpClient.Version.HTTP_2; ! import javax.net.ssl.*; ! import java.nio.file.*; ! import java.util.concurrent.*; import jdk.testlibrary.SimpleSSLContext; - import org.testng.annotations.Test; ! import org.testng.annotations.Parameters; /** * When selecting an unacceptable cipher suite the TLS handshake will fail. * But, the exception that was thrown was not being returned up to application * causing hang problems --- 40,64 ---- * @compile/module=java.httpclient java/net/http/TestUtil.java * @run testng/othervm -Djava.net.http.HttpClient.log=ssl,errors ErrorTest * @summary check exception thrown when bad TLS parameters selected */ ! import java.io.IOException; ! import java.net.URI; ! import java.net.http.EchoHandler; ! import java.net.http.HttpClient; ! import java.net.http.Http2TestServer; ! import java.net.http.HttpRequest; ! import java.net.http.HttpResponse; ! import java.util.concurrent.ExecutorService; ! import javax.net.ssl.SSLContext; ! import javax.net.ssl.SSLParameters; import jdk.testlibrary.SimpleSSLContext; import org.testng.annotations.Test; ! ! import static java.net.http.HttpClient.Version.HTTP_2; /** * When selecting an unacceptable cipher suite the TLS handshake will fail. * But, the exception that was thrown was not being returned up to application * causing hang problems
< prev index next >