]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ClientBusinessTest.java
add: testType for business-only tests.
[gigi.git] / tests / org / cacert / gigi / testUtils / ClientBusinessTest.java
diff --git a/tests/org/cacert/gigi/testUtils/ClientBusinessTest.java b/tests/org/cacert/gigi/testUtils/ClientBusinessTest.java
new file mode 100644 (file)
index 0000000..e096be4
--- /dev/null
@@ -0,0 +1,20 @@
+package org.cacert.gigi.testUtils;
+
+import org.cacert.gigi.GigiApiException;
+import org.cacert.gigi.dbObjects.User;
+
+public class ClientBusinessTest extends BusinessTest {
+
+    protected final User u;
+
+    protected final int id;
+
+    public ClientBusinessTest() {
+        try {
+            id = createVerifiedUser("a", "b", createUniqueName() + "@example.com", TEST_PASSWORD);
+            u = User.getById(id);
+        } catch (GigiApiException e) {
+            throw new Error(e);
+        }
+    }
+}