]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/account/TestDomain.java
Empty: rename fname,mname,lname,dob
[gigi.git] / tests / org / cacert / gigi / pages / account / TestDomain.java
index 0b82a56ba78f9c85223a7c8f26f453b1c585e383..1a3a5a081f3cdbbeef92838061d739ec82073b3b 100644 (file)
@@ -5,23 +5,18 @@ import static org.junit.Assert.*;
 import java.io.IOException;
 import java.net.URLEncoder;
 
-import org.cacert.gigi.dbObjects.User;
 import org.cacert.gigi.pages.account.domain.DomainOverview;
-import org.cacert.gigi.testUtils.ManagedTest;
+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"));
     }
 
     public static String addDomain(String session, String domain) throws IOException {