X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FtestUtils%2FClientTest.java;h=923fd97a70486ecdd14348a1aaefffd2a33e6330;hb=78aea4e2c6a8e99ba546c4189d7071d57c1aaf3b;hp=fc22e6d086bc58399c3463e30aa237f8db32a94d;hpb=ec24cf6925bb3729a644580ad4a9375d05883c62;p=gigi.git diff --git a/tests/org/cacert/gigi/testUtils/ClientTest.java b/tests/org/cacert/gigi/testUtils/ClientTest.java index fc22e6d0..923fd97a 100644 --- a/tests/org/cacert/gigi/testUtils/ClientTest.java +++ b/tests/org/cacert/gigi/testUtils/ClientTest.java @@ -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); + } + }