X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2Fpages%2Forga%2FTestOrgManagement.java;h=523ce88b050a7858bbd9b6b2708330c774032fa3;hb=5a073e36d9ad8165cce6506e267fb1e417b59975;hp=760ca198c5ba7c199eb410df307abb4933b3bb42;hpb=0b0db3d1f59e3473fad2d8011f75552b7de1671e;p=gigi.git diff --git a/tests/org/cacert/gigi/pages/orga/TestOrgManagement.java b/tests/org/cacert/gigi/pages/orga/TestOrgManagement.java index 760ca198..523ce88b 100644 --- a/tests/org/cacert/gigi/pages/orga/TestOrgManagement.java +++ b/tests/org/cacert/gigi/pages/orga/TestOrgManagement.java @@ -26,7 +26,7 @@ import org.junit.Test; public class TestOrgManagement extends OrgTest { - public TestOrgManagement() throws IOException { + public TestOrgManagement() throws IOException, GigiApiException { } @@ -149,7 +149,7 @@ public class TestOrgManagement extends OrgTest { Organisation o1 = createUniqueOrg(); o1.updateCertData("name", Country.getCountryByCode("DE", CountryCodeType.CODE_2_CHARS), DIFFICULT_CHARS, "Köln"); assertEquals("name", o1.getName()); - assertEquals("DE", o1.getState().getCode()); + assertEquals("DE", o1.getCountry().getCode()); assertEquals(DIFFICULT_CHARS, o1.getProvince()); assertEquals("Köln", o1.getCity()); o1.delete(); @@ -246,7 +246,7 @@ public class TestOrgManagement extends OrgTest { */ private String upCertData(Organisation o1, String o, String c, String province, String ct) throws IOException, MalformedURLException, UnsupportedEncodingException { if (c == null) { - c = o1.getState().getCode(); + c = o1.getCountry().getCode(); } return executeBasicWebInteraction(cookie, ViewOrgPage.DEFAULT_PATH + "/" + o1.getId(), "action=updateCertificateData&O=" + o + "&C=" + c + "&ST=" + province + "&L=" + ct, 0); }