]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/OrgTest.java
add: factor out country selection and type-restrict internal api.
[gigi.git] / tests / org / cacert / gigi / testUtils / OrgTest.java
index 8ae7e2c901e29a7935de5ff1a525b48a3d145f1b..4e2ea8bd1bb74bd3c990880afa52e5a0349cab61 100644 (file)
@@ -3,6 +3,8 @@ 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.Group;
 import org.cacert.gigi.dbObjects.Organisation;
 
@@ -16,7 +18,7 @@ public class OrgTest extends ClientTest {
     }
 
     public Organisation createUniqueOrg() throws GigiApiException {
-        Organisation o1 = new Organisation(createUniqueName(), "st", "pr", "city", "test@example.com", "", "", u);
+        Organisation o1 = new Organisation(createUniqueName(), CountryCode.getCountryCode("DE", CountryCodeType.CODE_2_CHARS), "pr", "city", "test@example.com", "", "", u);
         return o1;
     }
 }