]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ClientTest.java
Merge "upd: Reduce Boilerplate in translated SprintfCommands"
[gigi.git] / tests / org / cacert / gigi / testUtils / ClientTest.java
index 846a5abeac6a9e851d96a7c069cd7f20a0c6a42b..923fd97a70486ecdd14348a1aaefffd2a33e6330 100644 (file)
@@ -2,8 +2,6 @@ package org.cacert.gigi.testUtils;
 
 import java.io.IOException;
 import java.net.HttpURLConnection;
-import java.net.URL;
-import java.net.URLConnection;
 
 import org.cacert.gigi.dbObjects.User;
 
@@ -50,13 +48,7 @@ public abstract class ClientTest extends ManagedTest {
     }
 
     public HttpURLConnection get(String path) throws IOException {
-        return get(path, 0);
-    }
-
-    public HttpURLConnection get(String path, int formIndex) throws IOException {
-        URLConnection uc = new URL("https://" + getServerName() + path).openConnection();
-        uc.addRequestProperty("Cookie", cookie);
-        return (HttpURLConnection) uc;
+        return get(cookie, path);
     }
 
 }