< prev index next >

test/jdk/java/net/httpclient/AuthFilterCacheTest.java

Print this page
*** 33,10 ***
--- 33,11 ---
  import java.util.concurrent.atomic.AtomicLong;
  import jdk.httpclient.test.lib.common.HttpServerAdapters;
  
  import com.sun.net.httpserver.HttpsConfigurator;
  import com.sun.net.httpserver.HttpsServer;
+ import jdk.httpclient.test.lib.common.TestServerConfigurator;
  import org.testng.annotations.AfterClass;
  import org.testng.annotations.BeforeClass;
  import org.testng.annotations.DataProvider;
  import org.testng.annotations.Test;
  

*** 49,11 ***
   * @test
   * @bug 8232853
   * @summary AuthenticationFilter.Cache::remove may throw ConcurrentModificationException
   * @library /test/lib /test/jdk/java/net/httpclient/lib
   * @build jdk.httpclient.test.lib.common.HttpServerAdapters jdk.test.lib.net.SimpleSSLContext
!  *        DigestEchoServer
   * @run testng/othervm -Dtest.requiresHost=true
   * -Djdk.tracePinnedThreads=full
   * -Djdk.httpclient.HttpClient.log=headers
   * -Djdk.internal.httpclient.debug=false
   * AuthFilterCacheTest
--- 50,11 ---
   * @test
   * @bug 8232853
   * @summary AuthenticationFilter.Cache::remove may throw ConcurrentModificationException
   * @library /test/lib /test/jdk/java/net/httpclient/lib
   * @build jdk.httpclient.test.lib.common.HttpServerAdapters jdk.test.lib.net.SimpleSSLContext
!  *        DigestEchoServer jdk.httpclient.test.lib.common.TestServerConfigurator
   * @run testng/othervm -Dtest.requiresHost=true
   * -Djdk.tracePinnedThreads=full
   * -Djdk.httpclient.HttpClient.log=headers
   * -Djdk.internal.httpclient.debug=false
   * AuthFilterCacheTest

*** 131,11 ***
                      + "/AuthFilterCacheTest/http1/");
  
              // HTTPS/1.1
              HttpsServer sserver1 = HttpsServer.create(sa, 100);
              sserver1.setExecutor(serverExecutor);
!             sserver1.setHttpsConfigurator(new HttpsConfigurator(context));
              https1Server = HttpTestServer.of(sserver1);
              https1Server.addHandler(new TestHandler(), "/AuthFilterCacheTest/https1/");
              https1Server.start();
              https1URI = new URI("https://" + https1Server.serverAuthority()
                      + "/AuthFilterCacheTest/https1/");
--- 132,11 ---
                      + "/AuthFilterCacheTest/http1/");
  
              // HTTPS/1.1
              HttpsServer sserver1 = HttpsServer.create(sa, 100);
              sserver1.setExecutor(serverExecutor);
!             sserver1.setHttpsConfigurator(new TestServerConfigurator(sa.getAddress(), context));
              https1Server = HttpTestServer.of(sserver1);
              https1Server.addHandler(new TestHandler(), "/AuthFilterCacheTest/https1/");
              https1Server.start();
              https1URI = new URI("https://" + https1Server.serverAuthority()
                      + "/AuthFilterCacheTest/https1/");
< prev index next >