]> WPIA git - gigi.git/blob - tests/org/cacert/gigi/testUtils/ClientBusinessTest.java
fix: ResultSet.getDate is often wrong as it fetches day-precision times
[gigi.git] / tests / org / cacert / gigi / testUtils / ClientBusinessTest.java
1 package org.cacert.gigi.testUtils;
2
3 import org.cacert.gigi.GigiApiException;
4 import org.cacert.gigi.dbObjects.Name;
5 import org.cacert.gigi.dbObjects.User;
6
7 public class ClientBusinessTest extends BusinessTest {
8
9     protected final User u;
10
11     protected final Name n0;
12
13     protected final int id;
14
15     public ClientBusinessTest() {
16         try {
17             id = createVerifiedUser("a", "b", createUniqueName() + "@example.com", TEST_PASSWORD);
18             u = User.getById(id);
19             n0 = u.getNames()[0];
20         } catch (GigiApiException e) {
21             throw new Error(e);
22         }
23     }
24 }