equal
deleted
inserted
replaced
29 import java.net.http.HttpClient; |
29 import java.net.http.HttpClient; |
30 import java.net.http.HttpRequest; |
30 import java.net.http.HttpRequest; |
31 import java.net.http.HttpResponse; |
31 import java.net.http.HttpResponse; |
32 import java.net.http.HttpResponse.BodyHandlers; |
32 import java.net.http.HttpResponse.BodyHandlers; |
33 import java.net.http.HttpTimeoutException; |
33 import java.net.http.HttpTimeoutException; |
34 import jdk.testlibrary.SimpleSSLContext; |
34 import jdk.test.lib.net.SimpleSSLContext; |
35 |
35 |
36 import javax.net.ServerSocketFactory; |
36 import javax.net.ServerSocketFactory; |
37 import javax.net.ssl.SSLContext; |
37 import javax.net.ssl.SSLContext; |
38 import javax.net.ssl.SSLServerSocketFactory; |
38 import javax.net.ssl.SSLServerSocketFactory; |
39 import java.time.Duration; |
39 import java.time.Duration; |
44 |
44 |
45 import static java.lang.System.out; |
45 import static java.lang.System.out; |
46 |
46 |
47 /** |
47 /** |
48 * @test |
48 * @test |
49 * @library /lib/testlibrary |
49 * @library /test/lib |
50 * @build jdk.testlibrary.SimpleSSLContext |
50 * @build jdk.test.lib.net.SimpleSSLContext |
51 * @summary Basic tests for response timeouts |
51 * @summary Basic tests for response timeouts |
52 * @run main/othervm TimeoutBasic |
52 * @run main/othervm TimeoutBasic |
53 */ |
53 */ |
54 |
54 |
55 public class TimeoutBasic { |
55 public class TimeoutBasic { |