]> 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 fc22e6d086bc58399c3463e30aa237f8db32a94d..5b565093752dc2da9adae939ddf0eaf8c59d3227 100644 (file)
@@ -1,6 +1,7 @@
 package org.cacert.gigi.testUtils;
 
 import java.io.IOException;
+import java.net.HttpURLConnection;
 
 import org.cacert.gigi.dbObjects.User;
 
@@ -37,4 +38,21 @@ public abstract class ClientTest extends ManagedTest {
             throw new Error(e);
         }
     }
+
+    public HttpURLConnection post(String path, String query) throws IOException {
+        return post(path, query, 0);
+    }
+
+    public HttpURLConnection post(String path, String query, int formIndex) throws IOException {
+        return post(cookie, path, query, formIndex);
+    }
+
+    public HttpURLConnection get(String path) throws IOException {
+        return get(path, 0);
+    }
+
+    public HttpURLConnection get(String path, int formIndex) throws IOException {
+        return get(cookie, path, formIndex);
+    }
+
 }