]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/account/TestDomain.java
upd: rename package name and all references to it
[gigi.git] / tests / org / cacert / gigi / pages / account / TestDomain.java
diff --git a/tests/org/cacert/gigi/pages/account/TestDomain.java b/tests/org/cacert/gigi/pages/account/TestDomain.java
deleted file mode 100644 (file)
index 49f1b85..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.cacert.gigi.pages.account;
-
-import static org.junit.Assert.*;
-
-import java.io.IOException;
-import java.net.URLEncoder;
-
-import org.cacert.gigi.dbObjects.Domain;
-import org.cacert.gigi.pages.account.domain.DomainOverview;
-import org.cacert.gigi.testUtils.ClientTest;
-import org.junit.Test;
-
-public class TestDomain extends ClientTest {
-
-    public TestDomain() throws IOException {}
-
-    @Test
-    public void testAdd() throws IOException {
-        assertNull(addDomain(cookie, uniq + ".de"));
-        assertNotNull(addDomain(cookie, uniq + ".de"));
-    }
-
-    @Test
-    public void testInvalid() throws IOException {
-        assertNotNull(addDomain(cookie, uniq + ".invalid"));
-    }
-
-    @Test
-    public void testHighFinancialValue() throws IOException {
-        assertNotNull(addDomain(cookie, "google.com"));
-    }
-
-    @Test
-    public void testDelete() throws IOException {
-        String domain = uniq + ".de";
-        assertNull(addDomain(cookie, domain));
-        Domain d0 = Domain.searchDomain(domain);
-        assertNull(executeBasicWebInteraction(cookie, DomainOverview.PATH, "delete=" + d0.getId(), 0));
-        // double delete
-        assertNotNull(executeBasicWebInteraction(cookie, DomainOverview.PATH, "delete=" + d0.getId(), 0));
-        // re-add
-        assertNull(addDomain(cookie, domain));
-        Domain d1 = Domain.searchDomain(domain);
-        assertNotEquals(d0.getId(), d1.getId());
-        assertNull(executeBasicWebInteraction(cookie, DomainOverview.PATH, "delete=" + d1.getId(), 0));
-    }
-
-    public static String addDomain(String session, String domain) throws IOException {
-        return executeBasicWebInteraction(session, DomainOverview.PATH, "adddomain&newdomain=" + URLEncoder.encode(domain, "UTF-8"), 1);
-    }
-}