test/jdk/java/net/httpclient/SmokeTest.java
branchhttp-client-branch
changeset 56089 42208b2f224e
parent 56084 6146d87993db
child 56091 aedd6133e7a0
equal deleted inserted replaced
56088:38fac6d0521d 56089:42208b2f224e
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8087112 8178699
    26  * @bug 8087112 8178699
    27  * @modules jdk.incubator.httpclient
    27  * @modules java.net.http
    28  *          java.logging
    28  *          java.logging
    29  *          jdk.httpserver
    29  *          jdk.httpserver
    30  * @library /lib/testlibrary/ /
    30  * @library /lib/testlibrary/ /
    31  * @build jdk.testlibrary.SimpleSSLContext ProxyServer
    31  * @build jdk.testlibrary.SimpleSSLContext ProxyServer
    32  * @compile ../../../com/sun/net/httpserver/LogFilter.java
    32  * @compile ../../../com/sun/net/httpserver/LogFilter.java
    50 import java.util.concurrent.atomic.AtomicInteger;
    50 import java.util.concurrent.atomic.AtomicInteger;
    51 import java.net.InetSocketAddress;
    51 import java.net.InetSocketAddress;
    52 import java.net.PasswordAuthentication;
    52 import java.net.PasswordAuthentication;
    53 import java.net.ProxySelector;
    53 import java.net.ProxySelector;
    54 import java.net.URI;
    54 import java.net.URI;
    55 import jdk.incubator.http.HttpClient;
    55 import java.net.http.HttpClient;
    56 import jdk.incubator.http.HttpRequest;
    56 import java.net.http.HttpRequest;
    57 import jdk.incubator.http.HttpResponse;
    57 import java.net.http.HttpResponse;
    58 import java.nio.file.StandardOpenOption;
    58 import java.nio.file.StandardOpenOption;
    59 import java.io.File;
    59 import java.io.File;
    60 import java.io.FileInputStream;
    60 import java.io.FileInputStream;
    61 import java.io.FileOutputStream;
    61 import java.io.FileOutputStream;
    62 import java.io.FileNotFoundException;
    62 import java.io.FileNotFoundException;
    81 import java.util.HashSet;
    81 import java.util.HashSet;
    82 import java.util.LinkedList;
    82 import java.util.LinkedList;
    83 import java.util.List;
    83 import java.util.List;
    84 import java.util.Random;
    84 import java.util.Random;
    85 import jdk.testlibrary.SimpleSSLContext;
    85 import jdk.testlibrary.SimpleSSLContext;
    86 import static jdk.incubator.http.HttpRequest.BodyPublisher.fromFile;
    86 import static java.net.http.HttpRequest.BodyPublisher.fromFile;
    87 import static jdk.incubator.http.HttpRequest.BodyPublisher.fromInputStream;
    87 import static java.net.http.HttpRequest.BodyPublisher.fromInputStream;
    88 import static jdk.incubator.http.HttpRequest.BodyPublisher.fromString;
    88 import static java.net.http.HttpRequest.BodyPublisher.fromString;
    89 import static jdk.incubator.http.HttpResponse.*;
    89 import static java.net.http.HttpResponse.*;
    90 import static jdk.incubator.http.HttpResponse.BodyHandler.asFile;
    90 import static java.net.http.HttpResponse.BodyHandler.asFile;
    91 import static jdk.incubator.http.HttpResponse.BodyHandler.asString;
    91 import static java.net.http.HttpResponse.BodyHandler.asString;
    92 import java.util.concurrent.CountDownLatch;
    92 import java.util.concurrent.CountDownLatch;
    93 import java.util.logging.ConsoleHandler;
    93 import java.util.logging.ConsoleHandler;
    94 import java.util.logging.Level;
    94 import java.util.logging.Level;
    95 import java.util.logging.Logger;
    95 import java.util.logging.Logger;
    96 
    96