changeset 10542:7d00eacbe55a

8056065: sun/net/www/protocol/http/RedirectOnPost.java failing. Reviewed-by: alanb
author michaelm
date Tue, 26 Aug 2014 15:08:42 +0100
parents b0c3e5f2d1f1
children 1c4e4dd7a588
files test/sun/net/www/protocol/http/RedirectOnPost.java
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/net/www/protocol/http/RedirectOnPost.java	Tue Aug 26 10:19:56 2014 +0100
+++ b/test/sun/net/www/protocol/http/RedirectOnPost.java	Tue Aug 26 15:08:42 2014 +0100
@@ -23,7 +23,9 @@
 
 /**
  * @test
- * @compile ../../../../../com/sun/net/httpserver/SimpleSSLContext.java RedirectOnPost.java
+ * @library /lib/testlibrary/
+ * @build jdk.testlibrary.SimpleSSLContext
+ * @compile RedirectOnPost.java
  * @run main/othervm RedirectOnPost
  * @bug 8029127
  * @summary A redirect POST request does not work and illegalStateException on HttpURLConnection.getInputStream
@@ -35,17 +37,16 @@
 import com.sun.net.httpserver.*;
 import java.util.concurrent.*;
 import javax.net.ssl.*;
+import jdk.testlibrary.SimpleSSLContext;
 
 public class RedirectOnPost {
 
 
     public static void main(String[] args) throws Exception {
-            ExecutorService e= Executors.newFixedThreadPool(5);
-        String keysdir = System.getProperty("test.src")
-                  + "/../../../../../com/sun/net/httpserver/";
-        SSLContext ctx = new SimpleSSLContext(keysdir).get();
-            HttpServer httpServer = getHttpServer(e);
-            HttpsServer httpsServer = getHttpsServer(e, ctx);
+        ExecutorService e= Executors.newFixedThreadPool(5);
+        SSLContext ctx = new SimpleSSLContext().get();
+        HttpServer httpServer = getHttpServer(e);
+        HttpsServer httpsServer = getHttpsServer(e, ctx);
 
         try {
             // take the keystore from elsewhere in test hierarchy