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"));
}
public static String addDomain(String session, String domain) throws IOException {