test/java/net/CookieHandler/CookieManagerTest.java
Print this page
@@ -24,11 +24,11 @@
/*
* @test
* @summary Unit test for java.net.CookieManager
* @bug 6244040
* @library ../../../sun/net/www/httptest/
- * @build HttpCallback HttpServer ClosedChannelList HttpTransaction
+ * @build HttpCallback TestHttpServer ClosedChannelList HttpTransaction
* @run main/othervm -ea CookieManagerTest
* @author Edward Wang
*/
import java.net.*;
@@ -36,11 +36,11 @@
import java.io.*;
import sun.net.www.MessageHeader;
public class CookieManagerTest {
static CookieHttpTransaction httpTrans;
- static HttpServer server;
+ static TestHttpServer server;
public static void main(String[] args) throws Exception {
startHttpServer();
makeHttpCall();
@@ -50,11 +50,11 @@
}
public static void startHttpServer() {
try {
httpTrans = new CookieHttpTransaction();
- server = new HttpServer(httpTrans, 1, 1, 0);
+ server = new TestHttpServer(httpTrans, 1, 1, 0);
} catch (IOException e) {
e.printStackTrace();
}
}