jdk/test/com/sun/net/httpserver/Test7a.java
changeset 26206 fb87c4051d65
parent 7668 d4a77089c587
--- a/jdk/test/com/sun/net/httpserver/Test7a.java	Mon Aug 25 18:17:24 2014 +0200
+++ b/jdk/test/com/sun/net/httpserver/Test7a.java	Tue Aug 26 10:10:58 2014 +0100
@@ -24,6 +24,8 @@
 /**
  * @test
  * @bug 6270015
+ * @library /lib/testlibrary/
+ * @build jdk.testlibrary.SimpleSSLContext
  * @run main/othervm Test7a
  * @summary  Light weight HTTP server
  */
@@ -34,6 +36,7 @@
 import java.io.*;
 import java.net.*;
 import javax.net.ssl.*;
+import jdk.testlibrary.SimpleSSLContext;
 
 /**
  * Test POST large file via chunked encoding (large chunks)
@@ -52,7 +55,7 @@
         HttpsServer server = HttpsServer.create (addr, 0);
         HttpContext ctx = server.createContext ("/test", handler);
         ExecutorService executor = Executors.newCachedThreadPool();
-        SSLContext ssl = new SimpleSSLContext(System.getProperty("test.src")).get();
+        SSLContext ssl = new SimpleSSLContext().get();
         server.setHttpsConfigurator(new HttpsConfigurator (ssl));
         server.setExecutor (executor);
         server.start ();