]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ClientTest.java
add: another support test case
[gigi.git] / tests / org / cacert / gigi / testUtils / ClientTest.java
index 846a5abeac6a9e851d96a7c069cd7f20a0c6a42b..5b565093752dc2da9adae939ddf0eaf8c59d3227 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;
 
@@ -54,9 +52,7 @@ public abstract class ClientTest extends ManagedTest {
     }
 
     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, formIndex);
     }
 
 }