X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FtestUtils%2FManagedTest.java;h=bd35e821324dc0eff83b2d23be45f422258ac4f1;hb=ef6c1c7fe9290cfefb355a6c0d4794ab220c4619;hp=3d5c124684132aa021fd8208a085582d88d6df76;hpb=410465079ef6887884118bee366a3f9931563602;p=gigi.git diff --git a/tests/org/cacert/gigi/testUtils/ManagedTest.java b/tests/org/cacert/gigi/testUtils/ManagedTest.java index 3d5c1246..bd35e821 100644 --- a/tests/org/cacert/gigi/testUtils/ManagedTest.java +++ b/tests/org/cacert/gigi/testUtils/ManagedTest.java @@ -321,7 +321,7 @@ public class ManagedTest extends ConfiguredTest { public static void makeAssurer(int uid) { GigiPreparedStatement ps1 = DatabaseConnection.getInstance().prepare("INSERT INTO `cats_passed` SET `user_id`=?, `variant_id`=?"); ps1.setInt(1, uid); - ps1.setInt(2, 0); + ps1.setInt(2, 1); ps1.execute(); GigiPreparedStatement ps2 = DatabaseConnection.getInstance().prepare("INSERT INTO `notary` SET `from`=?, `to`=?, points='100'"); @@ -330,7 +330,7 @@ public class ManagedTest extends ConfiguredTest { ps2.execute(); } - static String stripCookie(String headerField) { + protected static String stripCookie(String headerField) { return headerField.substring(0, headerField.indexOf(';')); } @@ -473,7 +473,7 @@ public class ManagedTest extends ConfiguredTest { return (HttpURLConnection) uc; } - public HttpURLConnection get(String cookie, String path, int formIndex) throws IOException { + public HttpURLConnection get(String cookie, String path) throws IOException { URLConnection uc = new URL("https://" + getServerName() + path).openConnection(); uc.addRequestProperty("Cookie", cookie); return (HttpURLConnection) uc;