< prev index next >

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

Print this page

        

*** 24,34 **** /* * @test * @bug 8157105 * @library /lib/testlibrary server * @build jdk.testlibrary.SimpleSSLContext ! * @modules jdk.incubator.httpclient/jdk.incubator.http.internal.common * jdk.incubator.httpclient/jdk.incubator.http.internal.frame * jdk.incubator.httpclient/jdk.incubator.http.internal.hpack * java.security.jgss * @run testng/othervm/timeout=60 -Djavax.net.debug=ssl -Djdk.httpclient.HttpClient.log=all ErrorTest * @summary check exception thrown when bad TLS parameters selected --- 24,35 ---- /* * @test * @bug 8157105 * @library /lib/testlibrary server * @build jdk.testlibrary.SimpleSSLContext ! * @modules java.base/sun.net.www.http ! * jdk.incubator.httpclient/jdk.incubator.http.internal.common * jdk.incubator.httpclient/jdk.incubator.http.internal.frame * jdk.incubator.httpclient/jdk.incubator.http.internal.hpack * java.security.jgss * @run testng/othervm/timeout=60 -Djavax.net.debug=ssl -Djdk.httpclient.HttpClient.log=all ErrorTest * @summary check exception thrown when bad TLS parameters selected
*** 43,53 **** import javax.net.ssl.SSLParameters; import java.util.concurrent.Executors; import java.util.concurrent.ExecutorService; import jdk.testlibrary.SimpleSSLContext; import static jdk.incubator.http.HttpClient.Version.HTTP_2; ! import static jdk.incubator.http.HttpRequest.BodyProcessor.fromString; import static jdk.incubator.http.HttpResponse.BodyHandler.discard; import org.testng.annotations.Test; /** --- 44,54 ---- import javax.net.ssl.SSLParameters; import java.util.concurrent.Executors; import java.util.concurrent.ExecutorService; import jdk.testlibrary.SimpleSSLContext; import static jdk.incubator.http.HttpClient.Version.HTTP_2; ! import static jdk.incubator.http.HttpRequest.BodyPublisher.fromString; import static jdk.incubator.http.HttpResponse.BodyHandler.discard; import org.testng.annotations.Test; /**
< prev index next >