]> WPIA git - gigi.git/blobdiff - tests/club/wpia/gigi/testUtils/ClientBusinessTest.java
upd: rename package name and all references to it
[gigi.git] / tests / club / wpia / gigi / testUtils / ClientBusinessTest.java
diff --git a/tests/club/wpia/gigi/testUtils/ClientBusinessTest.java b/tests/club/wpia/gigi/testUtils/ClientBusinessTest.java
new file mode 100644 (file)
index 0000000..023d55e
--- /dev/null
@@ -0,0 +1,24 @@
+package club.wpia.gigi.testUtils;
+
+import club.wpia.gigi.GigiApiException;
+import club.wpia.gigi.dbObjects.Name;
+import club.wpia.gigi.dbObjects.User;
+
+public class ClientBusinessTest extends BusinessTest {
+
+    protected final User u;
+
+    protected final Name n0;
+
+    protected final int id;
+
+    public ClientBusinessTest() {
+        try {
+            id = createVerifiedUser("a", "b", createUniqueName() + "@example.com", TEST_PASSWORD);
+            u = User.getById(id);
+            n0 = u.getNames()[0];
+        } catch (GigiApiException e) {
+            throw new Error(e);
+        }
+    }
+}