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