X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2Fpages%2Faccount%2FTestContactInformation.java;fp=tests%2Forg%2Fcacert%2Fgigi%2Fpages%2Faccount%2FTestContactInformation.java;h=c63e36d2b3d76866e521fdd7ce305ef111555cd1;hb=8af6231b22da4fef795bcb54913faad6592b1a02;hp=6360578b42da418202fd4273fafa6e50b66dcaf4;hpb=795b21c53624fde4520e6cda1fb18a76635cd2a3;p=gigi.git diff --git a/tests/org/cacert/gigi/pages/account/TestContactInformation.java b/tests/org/cacert/gigi/pages/account/TestContactInformation.java index 6360578b..c63e36d2 100644 --- a/tests/org/cacert/gigi/pages/account/TestContactInformation.java +++ b/tests/org/cacert/gigi/pages/account/TestContactInformation.java @@ -7,17 +7,14 @@ import java.io.IOException; import java.net.URL; import java.net.URLConnection; +import org.cacert.gigi.testUtils.ClientTest; import org.cacert.gigi.testUtils.IOUtils; -import org.cacert.gigi.testUtils.ManagedTest; import org.junit.Test; -public class TestContactInformation extends ManagedTest { +public class TestContactInformation extends ClientTest { @Test public void testDirectoryListingToggle() throws IOException { - String email = createUniqueName() + "@e.fg"; - createVerifiedUser("Kurti", createUniqueName(), email, TEST_PASSWORD); - String cookie = login(email, TEST_PASSWORD); assertNull(executeBasicWebInteraction(cookie, MyDetails.PATH, "listme=1&contactinfo=&processContact", 1)); URLConnection url = new URL("https://" + getServerName() + MyDetails.PATH).openConnection(); url.setRequestProperty("Cookie", cookie); @@ -34,9 +31,6 @@ public class TestContactInformation extends ManagedTest { @Test public void testContactinfoSet() throws IOException { - String email = createUniqueName() + "@e.fg"; - createVerifiedUser("Kurti", createUniqueName(), email, TEST_PASSWORD); - String cookie = login(email, TEST_PASSWORD); String text = createUniqueName(); assertNull(executeBasicWebInteraction(cookie, MyDetails.PATH, "listme=1&contactinfo=" + text + "&processContact", 1)); URLConnection url = new URL("https://" + getServerName() + MyDetails.PATH).openConnection();