equal
deleted
inserted
replaced
32 import java.net.Socket; |
32 import java.net.Socket; |
33 import java.net.URI; |
33 import java.net.URI; |
34 import java.util.List; |
34 import java.util.List; |
35 import java.util.concurrent.CompletableFuture; |
35 import java.util.concurrent.CompletableFuture; |
36 import java.util.concurrent.CompletionException; |
36 import java.util.concurrent.CompletionException; |
37 import jdk.incubator.http.HttpClient; |
37 import java.net.http.HttpClient; |
38 import jdk.incubator.http.HttpClient.Version; |
38 import java.net.http.HttpClient.Version; |
39 import jdk.incubator.http.HttpResponse; |
39 import java.net.http.HttpResponse; |
40 import jdk.incubator.http.HttpRequest; |
40 import java.net.http.HttpRequest; |
41 import static java.lang.System.out; |
41 import static java.lang.System.out; |
42 import static jdk.incubator.http.HttpResponse.BodyHandler.discard; |
42 import static java.net.http.HttpResponse.BodyHandler.discard; |
43 |
43 |
44 /** |
44 /** |
45 * @test |
45 * @test |
46 * @run main/othervm HandshakeFailureTest |
46 * @run main/othervm HandshakeFailureTest |
47 * @summary Verify SSLHandshakeException is received when the handshake fails, |
47 * @summary Verify SSLHandshakeException is received when the handshake fails, |