X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FtestUtils%2FOrgTest.java;h=5a42a4a6d8d44932d84a136da2aa8d339eb32df3;hp=8ae7e2c901e29a7935de5ff1a525b48a3d145f1b;hb=d0470c5987aaecbc444c7100319df69b6f740680;hpb=d23d7a6fa9dc38c6193fea70017e0bff11257be5 diff --git a/tests/org/cacert/gigi/testUtils/OrgTest.java b/tests/org/cacert/gigi/testUtils/OrgTest.java index 8ae7e2c9..5a42a4a6 100644 --- a/tests/org/cacert/gigi/testUtils/OrgTest.java +++ b/tests/org/cacert/gigi/testUtils/OrgTest.java @@ -3,20 +3,22 @@ package org.cacert.gigi.testUtils; import java.io.IOException; import org.cacert.gigi.GigiApiException; +import org.cacert.gigi.dbObjects.Country; +import org.cacert.gigi.dbObjects.Country.CountryCodeType; import org.cacert.gigi.dbObjects.Group; import org.cacert.gigi.dbObjects.Organisation; public class OrgTest extends ClientTest { - public OrgTest() throws IOException { + public OrgTest() throws IOException, GigiApiException { makeAssurer(u.getId()); - u.grantGroup(u, Group.ORGASSURER); + u.grantGroup(getSupporter(), Group.ORGASSURER); clearCaches(); cookie = login(email, TEST_PASSWORD); } public Organisation createUniqueOrg() throws GigiApiException { - Organisation o1 = new Organisation(createUniqueName(), "st", "pr", "city", "test@example.com", "", "", u); + Organisation o1 = new Organisation(createUniqueName(), Country.getCountryByCode("DE", CountryCodeType.CODE_2_CHARS), "pr", "city", "test@example.com", "", "", u); return o1; } }