]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/wot/TestTTP.java
fix: use Group.getByString only when necessary
[gigi.git] / tests / org / cacert / gigi / pages / wot / TestTTP.java
index 34b0ca6dfc78c50d7ffad6d3c6a6a461ef72254d..560d1b5653559b183bbf34da63fc0013477937bf 100644 (file)
@@ -21,13 +21,13 @@ public class TestTTP extends ClientTest {
     public void testTTPApply() throws IOException {
         String ttp = IOUtils.readURL(get(RequestTTPPage.PATH));
         assertThat(ttp, containsString("<form"));
-        executeBasicWebInteraction(cookie, RequestTTPPage.PATH, "country=0");
+        assertNull(executeBasicWebInteraction(cookie, RequestTTPPage.PATH, "country=0"));
 
         ttp = IOUtils.readURL(get(RequestTTPPage.PATH));
         assertThat(ttp, not(containsString("<form")));
         ObjectCache.clearAllCaches();
         u = User.getById(u.getId());
-        assertTrue(u.isInGroup(Group.getByString("ttp-applicant")));
+        assertTrue(u.isInGroup(Group.TTP_APPLICANT));
     }
 
     @Test