]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/wot/TestTTP.java
upd: rename package name and all references to it
[gigi.git] / tests / org / cacert / gigi / pages / wot / TestTTP.java
diff --git a/tests/org/cacert/gigi/pages/wot/TestTTP.java b/tests/org/cacert/gigi/pages/wot/TestTTP.java
deleted file mode 100644 (file)
index 560d1b5..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.cacert.gigi.pages.wot;
-
-import static org.hamcrest.CoreMatchers.*;
-import static org.junit.Assert.*;
-
-import java.io.IOException;
-
-import org.cacert.gigi.GigiApiException;
-import org.cacert.gigi.dbObjects.Group;
-import org.cacert.gigi.dbObjects.ObjectCache;
-import org.cacert.gigi.dbObjects.User;
-import org.cacert.gigi.testUtils.ClientTest;
-import org.cacert.gigi.testUtils.IOUtils;
-import org.junit.Test;
-
-public class TestTTP extends ClientTest {
-
-    public TestTTP() throws IOException {}
-
-    @Test
-    public void testTTPApply() throws IOException {
-        String ttp = IOUtils.readURL(get(RequestTTPPage.PATH));
-        assertThat(ttp, containsString("<form"));
-        assertNull(executeBasicWebInteraction(cookie, RequestTTPPage.PATH, "country=0"));
-
-        ttp = IOUtils.readURL(get(RequestTTPPage.PATH));
-        assertThat(ttp, not(containsString("<form")));
-        ObjectCache.clearAllCaches();
-        u = User.getById(u.getId());
-        assertTrue(u.isInGroup(Group.TTP_APPLICANT));
-    }
-
-    @Test
-    public void testTTPEnoughPoints() throws IOException, GigiApiException {
-        User u = User.getById(createAssuranceUser("fn", "ln", createUniqueName() + "@example.org", TEST_PASSWORD));
-        cookie = login(u.getEmail(), TEST_PASSWORD);
-
-        String ttp = IOUtils.readURL(get(RequestTTPPage.PATH));
-        assertThat(ttp, not(containsString("<form")));
-    }
-}