X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=tests%2Forg%2Fcacert%2Fgigi%2Fpages%2Fwot%2FTestTTP.java;h=560d1b5653559b183bbf34da63fc0013477937bf;hb=f2ba62daa9e723daf903d021ba2d2549b2c1895f;hp=7c8884ba8c22acb8a6952af95ac0fdabc5119301;hpb=a1a980dd0cc65f33a6189eb81a164fe79abb647c;p=gigi.git diff --git a/tests/org/cacert/gigi/pages/wot/TestTTP.java b/tests/org/cacert/gigi/pages/wot/TestTTP.java index 7c8884ba..560d1b56 100644 --- a/tests/org/cacert/gigi/pages/wot/TestTTP.java +++ b/tests/org/cacert/gigi/pages/wot/TestTTP.java @@ -4,7 +4,6 @@ import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; import java.io.IOException; -import java.net.URL; import org.cacert.gigi.GigiApiException; import org.cacert.gigi.dbObjects.Group; @@ -16,21 +15,19 @@ import org.junit.Test; public class TestTTP extends ClientTest { - URL ttpPage = new URL("https://" + getServerName() + RequestTTPPage.PATH); - public TestTTP() throws IOException {} @Test public void testTTPApply() throws IOException { - String ttp = IOUtils.readURL(cookie(ttpPage.openConnection(), cookie)); + String ttp = IOUtils.readURL(get(RequestTTPPage.PATH)); assertThat(ttp, containsString("