mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8211978: Move testlibrary/jdk/testlibrary/SimpleSSLContext.java and testkeys to network testlibrary
Move SimpleSSLContext.java and testkeys to test/lib/jdk/test/lib/net Reviewed-by: chegar
This commit is contained in:
parent
497de20391
commit
4fe2edae59
122 changed files with 463 additions and 520 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,14 +24,14 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm -Dsun.net.httpserver.selCacheTimeout=2 SelCacheTest
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.*;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test1
|
||||
* @run main/othervm -Dsun.net.httpserver.maxReqTime=10 Test1
|
||||
* @run main/othervm -Dsun.net.httpserver.nodelay=true Test1
|
||||
|
@ -38,7 +38,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/* basic http/s connectivity test
|
||||
* Tests:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test12
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/* basic http/s connectivity test
|
||||
* Tests:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test13
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -37,7 +37,7 @@ import java.util.logging.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/* basic http/s connectivity test
|
||||
* Tests:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test6a
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/**
|
||||
* Test https POST large file via chunked encoding (unusually small chunks)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test7a
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/**
|
||||
* Test POST large file via chunked encoding (large chunks)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test8a
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/**
|
||||
* Test POST large file via fixed len encoding
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test9
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/* Same as Test1 but requests run in parallel.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,10 +24,10 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 6270015
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm Test9a
|
||||
* @summary Light weight HTTP server
|
||||
* @summary Light weight HTTP server
|
||||
*/
|
||||
|
||||
import com.sun.net.httpserver.*;
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.*;
|
|||
import java.io.*;
|
||||
import java.net.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/* Same as Test1 but requests run in parallel.
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -35,12 +35,12 @@ import java.util.stream.Stream;
|
|||
/*
|
||||
* @test
|
||||
* @bug 8169415
|
||||
* @library /lib/testlibrary/
|
||||
* @library /test/lib
|
||||
* @modules java.logging
|
||||
* java.base/sun.net.www
|
||||
* java.base/sun.net.www.protocol.http
|
||||
* jdk.httpserver/sun.net.httpserver
|
||||
* @build jdk.testlibrary.SimpleSSLContext HTTPTest HTTPTestServer HTTPTestClient HTTPSetAuthenticatorTest
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HTTPTest HTTPTestServer HTTPTestClient HTTPSetAuthenticatorTest
|
||||
* @summary A simple HTTP test that starts an echo server supporting the given
|
||||
* authentication scheme, then starts a regular HTTP client to invoke it.
|
||||
* The client first does a GET request on "/", then follows on
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -41,16 +41,16 @@ import javax.net.ssl.HostnameVerifier;
|
|||
import javax.net.ssl.HttpsURLConnection;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8169415
|
||||
* @library /lib/testlibrary/
|
||||
* @library /test/lib
|
||||
* @modules java.logging
|
||||
* java.base/sun.net.www
|
||||
* jdk.httpserver/sun.net.httpserver
|
||||
* @build jdk.testlibrary.SimpleSSLContext HTTPTest HTTPTestServer HTTPTestClient
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HTTPTest HTTPTestServer HTTPTestClient
|
||||
* @summary A simple HTTP test that starts an echo server supporting Digest
|
||||
* authentication, then starts a regular HTTP client to invoke it.
|
||||
* The client first does a GET request on "/", then follows on
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -26,8 +26,8 @@ import java.net.URLPermission;
|
|||
* @test
|
||||
* @bug 8010464
|
||||
* @modules jdk.httpserver
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run main/othervm URLTest
|
||||
* @summary check URLPermission with Http(s)URLConnection
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ import java.security.*;
|
|||
import java.util.concurrent.*;
|
||||
import com.sun.net.httpserver.*;
|
||||
import javax.net.ssl.*;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
public class URLTest {
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ import com.sun.net.httpserver.HttpsConfigurator;
|
|||
import com.sun.net.httpserver.HttpsServer;
|
||||
import java.net.http.HttpClient;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
@ -35,7 +35,7 @@
|
|||
* @run testng/othervm -Djdk.internal.httpclient.debug=true AbstractThrowingPushPromises
|
||||
*/
|
||||
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build jdk.test.lib.Platform
|
||||
* @build jdk.test.lib.util.FileUtils
|
||||
* @run testng/othervm AsFileDownloadTest
|
||||
|
@ -67,7 +67,7 @@ import java.util.List;
|
|||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import jdk.test.lib.util.FileUtils;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
// questions.
|
||||
//
|
||||
|
||||
// for JTwork/classes/0/lib/testlibrary/jdk/testlibrary/SimpleSSLContext.class
|
||||
grant codeBase "file:${test.classes}/../../../../lib/testlibrary/-" {
|
||||
// for JTwork/classes/0/test/lib/jdk/test/lib/net/SimpleSSLContext.class
|
||||
grant codeBase "file:${test.classes}/../../../../test/lib/-" {
|
||||
permission java.util.PropertyPermission "test.src.path", "read";
|
||||
permission java.io.FilePermission "${test.src}/../../../lib/testlibrary/jdk/testlibrary/testkeys", "read";
|
||||
permission java.io.FilePermission "${test.src}/../../../../lib/jdk/test/lib/net/testkeys", "read";
|
||||
};
|
||||
|
||||
// for JTwork//classes/0/java/net/httpclient/http2/server/*
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=trace,headers,requests
|
||||
* BasicRedirectTest
|
||||
|
@ -53,7 +53,7 @@ import java.net.http.HttpRequest;
|
|||
import java.net.http.HttpResponse;
|
||||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -26,7 +26,7 @@ import java.net.http.HttpClient.Version;
|
|||
import java.net.http.HttpHeaders;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
import javax.net.ServerSocketFactory;
|
||||
import javax.net.ssl.SSLContext;
|
||||
|
@ -55,9 +55,9 @@ import static java.nio.charset.StandardCharsets.ISO_8859_1;
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @library /test/lib
|
||||
* @modules java.net.http/jdk.internal.net.http.common
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer ReferenceTracker
|
||||
* @run main/othervm CancelledResponse
|
||||
* @run main/othervm CancelledResponse SSL
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=headers,errors,channel
|
||||
* ConcurrentResponses
|
||||
|
@ -67,7 +67,7 @@ import java.net.http.HttpResponse.BodyHandler;
|
|||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import java.net.http.HttpResponse.BodySubscriber;
|
||||
import java.net.http.HttpResponse.BodySubscribers;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.tls.acknowledgeCloseNotify=true
|
||||
* -Djdk.httpclient.HttpClient.log=trace,headers,requests
|
||||
|
@ -43,7 +43,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm CustomRequestPublisher
|
||||
*/
|
||||
|
||||
|
@ -62,7 +62,7 @@ import javax.net.ssl.SSLSession;
|
|||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
/*
|
||||
* @test
|
||||
* @summary Tests response body subscribers's onComplete is not invoked before onSubscribe
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -57,7 +57,7 @@ import java.net.http.HttpResponse.BodyHandler;
|
|||
import java.net.http.HttpResponse.BodySubscriber;
|
||||
import java.net.http.HttpResponse.BodySubscribers;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @summary Verify that dependent synchronous actions added before the CF
|
||||
* completes are executed either asynchronously in an executor when the
|
||||
* CF later completes, or in the user thread that joins.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters DependentActionsTest
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters DependentActionsTest
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -43,7 +43,7 @@ import java.lang.StackWalker.StackFrame;
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @summary Verify that dependent synchronous actions added before the promise CF
|
||||
* completes are executed either asynchronously in an executor when the
|
||||
* CF later completes, or in the user thread that joins.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters DependentPromiseActionsTest
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters DependentPromiseActionsTest
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -40,7 +40,7 @@
|
|||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.lang.StackWalker.StackFrame;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -51,7 +51,7 @@ import java.util.concurrent.atomic.AtomicLong;
|
|||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import sun.net.NetProperties;
|
||||
import sun.net.www.HeaderParser;
|
||||
import static java.lang.System.out;
|
||||
|
@ -62,8 +62,8 @@ import static java.lang.String.format;
|
|||
* @summary this test verifies that a client may provides authorization
|
||||
* headers directly when connecting with a server.
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters DigestEchoServer
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters DigestEchoServer
|
||||
* ReferenceTracker DigestEchoClient
|
||||
* @modules java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @bug 8087112
|
||||
* @summary this test verifies that a client may provides authorization
|
||||
* headers directly when connecting with a server over SSL.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext DigestEchoServer
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext DigestEchoServer
|
||||
* DigestEchoClient ReferenceTracker DigestEchoClientSSL
|
||||
* @modules java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
|
|
@ -32,7 +32,7 @@ import java.util.HashSet;
|
|||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import static java.net.http.HttpRequest.*;
|
||||
import static java.net.http.HttpResponse.*;
|
||||
import java.util.logging.ConsoleHandler;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @bug 8199683
|
||||
* @summary Tests that escaped characters in URI are correctly
|
||||
* handled (not re-escaped and not unescaped)
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters EncodedCharsInURI
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters EncodedCharsInURI
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -42,7 +42,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=reqeusts,headers
|
||||
* EscapedOctetsInURI
|
||||
|
@ -58,7 +58,7 @@ import java.net.http.HttpResponse.BodyHandlers;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @summary Basic test for Expect 100-Continue ( HTTP/1.1 only )
|
||||
* @modules java.net.http
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm ExpectContinue
|
||||
*/
|
||||
|
||||
|
@ -49,7 +49,7 @@ import java.net.http.HttpResponse;
|
|||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -43,7 +43,7 @@ import com.sun.net.httpserver.HttpsServer;
|
|||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
@ -67,9 +67,9 @@ import static org.testng.Assert.fail;
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm FlowAdapterPublisherTest
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -48,7 +48,7 @@ import java.net.http.HttpRequest.BodyPublishers;
|
|||
import java.net.http.HttpResponse;
|
||||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import java.net.http.HttpResponse.BodySubscribers;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
@ -68,9 +68,9 @@ import static org.testng.Assert.assertTrue;
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm -Djdk.internal.httpclient.debug=true FlowAdapterSubscriberTest
|
||||
*/
|
||||
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=trace,headers,requests
|
||||
* HeadTest
|
||||
|
@ -42,7 +42,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -48,7 +48,7 @@ import javax.net.ssl.SSLParameters;
|
|||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpClient.Redirect;
|
||||
import java.net.http.HttpClient.Version;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.Test;
|
||||
import static java.time.Duration.*;
|
||||
import static org.testng.Assert.*;
|
||||
|
@ -56,8 +56,8 @@ import static org.testng.Assert.*;
|
|||
/*
|
||||
* @test
|
||||
* @summary HttpClient[.Builder] API and behaviour checks
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng HttpClientBuilderTest
|
||||
*/
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ import java.util.HashSet;
|
|||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import static java.net.http.HttpRequest.*;
|
||||
import static java.net.http.HttpResponse.*;
|
||||
import java.util.logging.ConsoleHandler;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
|
@ -49,8 +49,8 @@ import static java.lang.System.out;
|
|||
* be preemptively downgraded. That, is the stack should attempt
|
||||
* a new h2 connection to the new host.
|
||||
* @bug 8196967
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters DigestEchoServer HttpsTunnelTest
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters DigestEchoServer HttpsTunnelTest
|
||||
* @modules java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
* java.net.http/jdk.internal.net.http.hpack
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests response body subscribers's onNext's Lists are unmodifiable,
|
||||
* and that the buffers are read-only
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -57,7 +57,7 @@ import java.net.http.HttpResponse.BodyHandler;
|
|||
import java.net.http.HttpResponse.BodySubscriber;
|
||||
import java.net.http.HttpResponse.BodySubscribers;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @summary Tests an asynchronous BodySubscriber that completes
|
||||
* immediately with an InputStream which issues bad
|
||||
* requests
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext ReferenceTracker
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext ReferenceTracker
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -38,7 +38,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Test to ensure the HTTP client throws an appropriate SSL exception
|
||||
* when SSL context is not valid.
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm -Djdk.internal.httpclient.debug=true InvalidSSLContextTest
|
||||
*/
|
||||
|
||||
|
@ -47,7 +47,7 @@ import java.net.http.HttpClient.Version;
|
|||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
* @summary Tests an asynchronous BodySubscriber that completes
|
||||
* immediately with a Publisher<List<ByteBuffer>> whose
|
||||
* subscriber issues bad requests
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext ReferenceTracker
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext ReferenceTracker
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -39,7 +39,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* library /lib/testlibrary/ /
|
||||
* build jdk.testlibrary.SimpleSSLContext ProxyServer
|
||||
* library /test/lib /
|
||||
* build jdk.test.lib.net.SimpleSSLContext ProxyServer
|
||||
* compile ../../../com/sun/net/httpserver/LogFilter.java
|
||||
* compile ../../../com/sun/net/httpserver/EchoHandler.java
|
||||
* compile ../../../com/sun/net/httpserver/FileServerHandler.java
|
||||
|
@ -50,7 +50,7 @@ import java.util.logging.ConsoleHandler;
|
|||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
public class LightWeightHttpServer {
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ import javax.net.ssl.SSLContext;
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
@ -77,9 +77,9 @@ import static org.testng.Assert.assertTrue;
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer LineBodyHandlerTest HttpServerAdapters
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm LineBodyHandlerTest
|
||||
*/
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
* @modules java.net.http
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary/ /
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @compile ../../../com/sun/net/httpserver/LogFilter.java
|
||||
* @compile ../../../com/sun/net/httpserver/EchoHandler.java
|
||||
* @compile ../../../com/sun/net/httpserver/FileServerHandler.java
|
||||
|
@ -63,7 +63,7 @@ import java.util.logging.Logger;
|
|||
import java.util.logging.Level;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
public class ManyRequests {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -27,8 +27,8 @@
|
|||
* @modules java.net.http
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary/ /
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @compile ../../../com/sun/net/httpserver/LogFilter.java
|
||||
* @compile ../../../com/sun/net/httpserver/EchoHandler.java
|
||||
* @compile ../../../com/sun/net/httpserver/FileServerHandler.java
|
||||
|
@ -36,8 +36,11 @@
|
|||
* @run main/othervm/timeout=40 -Dtest.XFixed=true ManyRequests2
|
||||
* @run main/othervm/timeout=40 -Dtest.XFixed=true -Dtest.insertDelay=true ManyRequests2
|
||||
* @run main/othervm/timeout=40 -Dtest.XFixed=true -Dtest.chunkSize=64 ManyRequests2
|
||||
* @run main/othervm/timeout=40 -Djdk.internal.httpclient.debug=true -Dtest.XFixed=true -Dtest.insertDelay=true -Dtest.chunkSize=64 ManyRequests2
|
||||
* @summary Send a large number of requests asynchronously. The server echoes back using known content length.
|
||||
* @run main/othervm/timeout=40 -Djdk.internal.httpclient.debug=true
|
||||
* -Dtest.XFixed=true -Dtest.insertDelay=true
|
||||
* -Dtest.chunkSize=64 ManyRequests2
|
||||
* @summary Send a large number of requests asynchronously.
|
||||
* The server echoes back using known content length.
|
||||
*/
|
||||
// * @run main/othervm/timeout=40 -Djdk.httpclient.HttpClient.log=ssl ManyRequests
|
||||
|
||||
|
|
|
@ -26,16 +26,19 @@
|
|||
* @modules java.net.http
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary/ /
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @compile ../../../com/sun/net/httpserver/LogFilter.java
|
||||
* @compile ../../../com/sun/net/httpserver/EchoHandler.java
|
||||
* @compile ../../../com/sun/net/httpserver/FileServerHandler.java
|
||||
* @run main/othervm/timeout=40 ManyRequestsLegacy
|
||||
* @run main/othervm/timeout=40 -Dtest.insertDelay=true ManyRequestsLegacy
|
||||
* @run main/othervm/timeout=40 -Dtest.chunkSize=64 ManyRequestsLegacy
|
||||
* @run main/othervm/timeout=40 -Dtest.insertDelay=true -Dtest.chunkSize=64 ManyRequestsLegacy
|
||||
* @summary Send a large number of requests asynchronously using the legacy URL.openConnection(), to help sanitize results of the test ManyRequest.java.
|
||||
* @run main/othervm/timeout=40 -Dtest.insertDelay=true
|
||||
* -Dtest.chunkSize=64 ManyRequestsLegacy
|
||||
* @summary Send a large number of requests asynchronously using the legacy
|
||||
* URL.openConnection(), to help sanitize results of the test
|
||||
* ManyRequest.java.
|
||||
*/
|
||||
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
|
@ -70,7 +73,7 @@ import java.util.LinkedList;
|
|||
import java.util.Random;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.Level;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
public class ManyRequestsLegacy {
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
/*
|
||||
* @test
|
||||
* @summary Tests mapped response subscriber
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -62,7 +62,7 @@ import java.net.http.HttpResponse.BodySubscribers;
|
|||
import java.net.http.HttpResponse.BodySubscriber;
|
||||
import java.util.function.Function;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm -ea -esa MaxStreams
|
||||
*/
|
||||
|
||||
|
@ -60,7 +60,7 @@ import java.net.http.HttpRequest;
|
|||
import java.net.http.HttpResponse;
|
||||
import java.net.http.HttpResponse.BodyHandler;
|
||||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @bug 8161157
|
||||
* @summary Test response body handlers/subscribers when there is no body
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @bug 8161157
|
||||
* @summary Test response body handlers/subscribers when there is no body
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @compile -encoding utf-8 NonAsciiCharsInURI.java
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=reqeusts,headers
|
||||
|
@ -58,7 +58,7 @@ import java.net.http.HttpResponse.BodyHandlers;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
* it verifies that the client honor the jdk.http.auth.*.disabledSchemes
|
||||
* net properties.
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext DigestEchoServer DigestEchoClient
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext DigestEchoServer DigestEchoClient
|
||||
* ReferenceTracker ProxyAuthDisabledSchemes
|
||||
* @modules java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
* headers directly when connecting with a server over SSL, and
|
||||
* it verifies that the client honor the jdk.http.auth.*.disabledSchemes
|
||||
* net properties.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext DigestEchoServer DigestEchoClient
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext DigestEchoServer DigestEchoClient
|
||||
* ReferenceTracker ProxyAuthDisabledSchemesSSL
|
||||
* @modules java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -56,7 +56,7 @@ import javax.net.ssl.SSLSession;
|
|||
import java.net.http.HttpClient;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
/**
|
||||
* @test
|
||||
|
@ -67,8 +67,8 @@ import jdk.testlibrary.SimpleSSLContext;
|
|||
* an SSL Tunnel connection when the client is HTTP/2 and the server
|
||||
* and proxy are HTTP/1.1
|
||||
* @modules java.net.http
|
||||
* @library /lib/testlibrary/
|
||||
* @build jdk.testlibrary.SimpleSSLContext ProxyTest
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext ProxyTest
|
||||
* @run main/othervm ProxyTest
|
||||
* @author danielfuchs
|
||||
*/
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
* java.net.http/jdk.internal.net.http.frame
|
||||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm RedirectMethodChange
|
||||
*/
|
||||
|
||||
|
@ -50,7 +50,7 @@ import java.net.http.HttpResponse.BodyHandlers;
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=trace,headers,requests
|
||||
* RedirectWithCookie
|
||||
|
@ -55,7 +55,7 @@ import java.net.http.HttpResponse;
|
|||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -27,11 +27,11 @@
|
|||
* @modules java.net.http
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary/ /test/lib
|
||||
* @library /test/lib
|
||||
* @compile ../../../com/sun/net/httpserver/LogFilter.java
|
||||
* @compile ../../../com/sun/net/httpserver/EchoHandler.java
|
||||
* @compile ../../../com/sun/net/httpserver/FileServerHandler.java
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build LightWeightHttpServer
|
||||
* @build jdk.test.lib.Platform
|
||||
* @build jdk.test.lib.util.FileUtils
|
||||
|
|
|
@ -27,10 +27,10 @@ grant codeBase "file:${test.classes}/../../../../test/lib/-" {
|
|||
permission java.io.FilePermission "RequestBodyTest.tmp", "read,delete";
|
||||
};
|
||||
|
||||
// for JTwork/classes/0/lib/testlibrary/jdk/testlibrary/SimpleSSLContext.class
|
||||
grant codeBase "file:${test.classes}/../../../../lib/testlibrary/-" {
|
||||
// for JTwork/classes/0/test/lib/jdk/test/lib/net/SimpleSSLContext.class
|
||||
grant codeBase "file:${test.classes}/../../../../test/lib/-" {
|
||||
permission java.util.PropertyPermission "test.src.path", "read";
|
||||
permission java.io.FilePermission "${test.src}/../../../lib/testlibrary/jdk/testlibrary/testkeys", "read";
|
||||
permission java.io.FilePermission "${test.src}/../../../../lib/jdk/test/lib/net/testkeys", "read";
|
||||
};
|
||||
|
||||
grant codeBase "file:${test.classes}/*" {
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests that all response body is delivered to the BodySubscriber
|
||||
* before an abortive error terminates the flow
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm ResponseBodyBeforeError
|
||||
*/
|
||||
|
||||
|
@ -52,7 +52,7 @@ import java.util.concurrent.CompletableFuture;
|
|||
import java.util.concurrent.CompletionStage;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Flow;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
* @bug 8201186
|
||||
* @summary Tests an asynchronous BodySubscriber that completes
|
||||
* immediately with a Publisher<List<ByteBuffer>>
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -40,7 +40,7 @@ import com.sun.net.httpserver.HttpHandler;
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext ReferenceTracker
|
||||
* @build jdk.test.lib.net.SimpleSSLContext ReferenceTracker
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=trace,headers,requests
|
||||
* RetryWithCookie
|
||||
|
@ -42,7 +42,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests that our client deals correctly with servers that
|
||||
* close the connection right after sending the last byte.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters EncodedCharsInURI
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters EncodedCharsInURI
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
* java.net.http/jdk.internal.net.http.frame
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
//* -Djdk.internal.httpclient.debug=true
|
||||
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests Exception detail message when too few response bytes are
|
||||
* received before a socket exception or eof.
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=headers,errors,channel
|
||||
* ShortResponseBody
|
||||
|
@ -55,7 +55,7 @@ import java.util.concurrent.Executors;
|
|||
import java.util.concurrent.ThreadFactory;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.stream.Stream;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
/*
|
||||
* @test
|
||||
* @summary Run of ShortResponseBody with -Djdk.httpclient.enableAllMethodRetry
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build ShortResponseBody
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=headers,errors,channel
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
* @modules java.net.http
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary/ /
|
||||
* @build jdk.testlibrary.SimpleSSLContext ProxyServer
|
||||
* @library /test/lib /
|
||||
* @build jdk.test.lib.net.SimpleSSLContext ProxyServer
|
||||
* @compile ../../../com/sun/net/httpserver/LogFilter.java
|
||||
* @compile ../../../com/sun/net/httpserver/EchoHandler.java
|
||||
* @compile ../../../com/sun/net/httpserver/FileServerHandler.java
|
||||
|
@ -88,7 +88,7 @@ import java.util.HashSet;
|
|||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING;
|
||||
import static java.nio.file.StandardOpenOption.WRITE;
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer HttpServerAdapters SpecialHeadersTest
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=requests,headers,errors
|
||||
* SpecialHeadersTest
|
||||
|
@ -43,7 +43,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -40,7 +40,7 @@ import java.net.http.HttpRequest;
|
|||
import java.net.http.HttpResponse;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import static java.lang.System.out;
|
||||
import static java.lang.String.format;
|
||||
import static java.nio.charset.StandardCharsets.ISO_8859_1;
|
||||
|
@ -49,8 +49,8 @@ import static java.net.http.HttpResponse.BodyHandlers.ofString;
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -24,8 +24,8 @@
|
|||
/**
|
||||
* @test
|
||||
* @bug 8087112
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @build MockServer SplitResponse
|
||||
* @run main/othervm
|
||||
* -Djdk.internal.httpclient.debug=true
|
||||
|
|
|
@ -31,9 +31,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=trace,headers,requests
|
||||
* StreamingBody
|
||||
|
@ -53,7 +53,7 @@ import java.net.http.HttpRequest;
|
|||
import java.net.http.HttpResponse;
|
||||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersCustomAfterCancel
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersCustomBeforeCancel
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersIOAfterCancel
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersIOBeforeCancel
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersInNextRequest
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersInRequest
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersInSubscribe
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when request publishers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPublishers ThrowingPublishersSanity
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesAsInputStreamCustom
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesAsInputStreamIO
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesAsLinesCustom
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesAsLinesIO
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesAsStringCustom
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesAsStringIO
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when push promise handlers and their
|
||||
* response body handlers and subscribers throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker AbstractThrowingPushPromises ThrowingPushPromisesSanity
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersAsInputStream AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersAsInputStreamAsync AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersAsLines AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersAsLinesAsync AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersAsString AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersAsStringAsync AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
* @test
|
||||
* @summary Tests what happens when response body handlers and subscribers
|
||||
* throw unexpected exceptions.
|
||||
* @library /lib/testlibrary http2/server
|
||||
* @build jdk.testlibrary.SimpleSSLContext HttpServerAdapters
|
||||
* @library /test/lib http2/server
|
||||
* @build jdk.test.lib.net.SimpleSSLContext HttpServerAdapters
|
||||
* ReferenceTracker ThrowingSubscribersSanity AbstractThrowingSubscribers
|
||||
* @modules java.base/sun.net.www.http
|
||||
* java.net.http/jdk.internal.net.http.common
|
||||
|
|
|
@ -31,7 +31,7 @@ import java.net.http.HttpRequest;
|
|||
import java.net.http.HttpResponse;
|
||||
import java.net.http.HttpResponse.BodyHandlers;
|
||||
import java.net.http.HttpTimeoutException;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
|
||||
import javax.net.ServerSocketFactory;
|
||||
import javax.net.ssl.SSLContext;
|
||||
|
@ -46,8 +46,8 @@ import static java.lang.System.out;
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @library /lib/testlibrary
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @summary Basic tests for response timeouts
|
||||
* @run main/othervm TimeoutBasic
|
||||
*/
|
||||
|
|
|
@ -35,9 +35,9 @@
|
|||
* java.net.http/jdk.internal.net.http.hpack
|
||||
* java.logging
|
||||
* jdk.httpserver
|
||||
* @library /lib/testlibrary /test/lib http2/server
|
||||
* @library /test/lib http2/server
|
||||
* @build Http2TestServer
|
||||
* @build jdk.testlibrary.SimpleSSLContext
|
||||
* @build jdk.test.lib.net.SimpleSSLContext
|
||||
* @run testng/othervm
|
||||
* -Djdk.httpclient.HttpClient.log=headers
|
||||
* UnauthorizedTest
|
||||
|
@ -46,7 +46,7 @@
|
|||
import com.sun.net.httpserver.HttpServer;
|
||||
import com.sun.net.httpserver.HttpsConfigurator;
|
||||
import com.sun.net.httpserver.HttpsServer;
|
||||
import jdk.testlibrary.SimpleSSLContext;
|
||||
import jdk.test.lib.net.SimpleSSLContext;
|
||||
import org.testng.annotations.AfterTest;
|
||||
import org.testng.annotations.BeforeTest;
|
||||
import org.testng.annotations.DataProvider;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue