1 package org.cacert.gigi.testUtils;
3 import java.io.IOException;
5 import org.cacert.gigi.dbObjects.User;
8 * Superclass for testsuites in a scenario where there is an registered member,
9 * who is already logged on.
11 public abstract class ClientTest extends ManagedTest {
14 * Email of the member.
16 protected String email = createUniqueName() + "@example.org";
21 protected int id = createVerifiedUser("a", "b", email, TEST_PASSWORD);
24 * {@link User} object of the member
26 protected User u = User.getById(id);
29 * Session cookie of the member.
31 protected String cookie;
35 cookie = login(email, TEST_PASSWORD);
36 } catch (IOException e) {