]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ClientTest.java
add: test case verifying certificate overview.
[gigi.git] / tests / org / cacert / gigi / testUtils / ClientTest.java
index fc22e6d086bc58399c3463e30aa237f8db32a94d..923fd97a70486ecdd14348a1aaefffd2a33e6330 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,17 @@ 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(cookie, path);
+    }
+
 }