X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FtestUtils%2FOrgTest.java;h=5a42a4a6d8d44932d84a136da2aa8d339eb32df3;hb=cc1ae4eeb5b0b2093161dbebded9daf3fce0721c;hp=4e2ea8bd1bb74bd3c990880afa52e5a0349cab61;hpb=bead06ac89a5fbe282dab187c5d1babbb7dcdf66;p=gigi.git diff --git a/tests/org/cacert/gigi/testUtils/OrgTest.java b/tests/org/cacert/gigi/testUtils/OrgTest.java index 4e2ea8bd..5a42a4a6 100644 --- a/tests/org/cacert/gigi/testUtils/OrgTest.java +++ b/tests/org/cacert/gigi/testUtils/OrgTest.java @@ -3,22 +3,22 @@ package org.cacert.gigi.testUtils; import java.io.IOException; import org.cacert.gigi.GigiApiException; -import org.cacert.gigi.dbObjects.CountryCode; -import org.cacert.gigi.dbObjects.CountryCode.CountryCodeType; +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(), CountryCode.getCountryCode("DE", CountryCodeType.CODE_2_CHARS), "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; } }