]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ClientTest.java
UPD: clean up/document/beatufy testcases.
[gigi.git] / tests / org / cacert / gigi / testUtils / ClientTest.java
index ab88844f07c218f380179d05fae87f3d9a9d6003..fc22e6d086bc58399c3463e30aa237f8db32a94d 100644 (file)
@@ -2,15 +2,33 @@ package org.cacert.gigi.testUtils;
 
 import java.io.IOException;
 
+import org.cacert.gigi.dbObjects.User;
+
+/**
+ * Superclass for testsuites in a scenario where there is an registered member,
+ * who is already logged on.
+ */
 public abstract class ClientTest extends ManagedTest {
 
+    /**
+     * Email of the member.
+     */
     protected String email = createUniqueName() + "@example.org";
 
-    protected int userid = createVerifiedUser("a", "b", email, TEST_PASSWORD);
+    /**
+     * Id of the member
+     */
+    protected int id = createVerifiedUser("a", "b", email, TEST_PASSWORD);
 
-    protected String cookie;
+    /**
+     * {@link User} object of the member
+     */
+    protected User u = User.getById(id);
 
-    protected String csrf;
+    /**
+     * Session cookie of the member.
+     */
+    protected String cookie;
 
     public ClientTest() {
         try {