]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/account/TestDomain.java
add: high financial value assessment
[gigi.git] / tests / org / cacert / gigi / pages / account / TestDomain.java
index 64cbab78d86a98ef0cd1dfdb940977a995a3b38f..770c90e864298cd7b60bcc8e2d5dfa475a2dad65 100644 (file)
@@ -5,22 +5,28 @@ import static org.junit.Assert.*;
 import java.io.IOException;
 import java.net.URLEncoder;
 
-import org.cacert.gigi.dbObjects.User;
-import org.cacert.gigi.testUtils.ManagedTest;
+import org.cacert.gigi.pages.account.domain.DomainOverview;
+import org.cacert.gigi.testUtils.ClientTest;
 import org.junit.Test;
 
-public class TestDomain extends ManagedTest {
-
-    User u = User.getById(createVerifiedUser("testuser", "testname", uniq + "@testdom.com", TEST_PASSWORD));
-
-    String session = login(uniq + "@testdom.com", TEST_PASSWORD);
+public class TestDomain extends ClientTest {
 
     public TestDomain() throws IOException {}
 
     @Test
     public void testAdd() throws IOException {
-        assertNull(addDomain(session, uniq + ".tld"));
-        assertNotNull(addDomain(session, uniq + ".tld"));
+        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"));
     }
 
     public static String addDomain(String session, String domain) throws IOException {