]> WPIA git - gigi.git/blob - tests/org/cacert/gigi/testUtils/OrgTest.java
upd: cleanup organisation test cases
[gigi.git] / tests / org / cacert / gigi / testUtils / OrgTest.java
1 package org.cacert.gigi.testUtils;
2
3 import java.io.IOException;
4
5 import org.cacert.gigi.GigiApiException;
6 import org.cacert.gigi.dbObjects.Group;
7 import org.cacert.gigi.dbObjects.Organisation;
8
9 public class OrgTest extends ClientTest {
10
11     public OrgTest() throws IOException {
12         makeAssurer(u.getId());
13         u.grantGroup(u, Group.ORGASSURER);
14         clearCaches();
15         cookie = login(email, TEST_PASSWORD);
16     }
17
18     public Organisation createUniqueOrg() throws GigiApiException {
19         Organisation o1 = new Organisation(createUniqueName(), "st", "pr", "city", "test@example.com", "", "", u);
20         return o1;
21     }
22 }