1 package club.wpia.gigi.testUtils;
3 import static org.junit.Assert.*;
5 import java.io.IOException;
7 import club.wpia.gigi.GigiApiException;
8 import club.wpia.gigi.dbObjects.CATS.CATSType;
9 import club.wpia.gigi.dbObjects.Group;
10 import club.wpia.gigi.pages.admin.support.SupportEnterTicketPage;
13 * Superclass for testsuites in a scenario where there is a supporter, who is
16 public abstract class SEClientTest extends ClientTest {
18 public SEClientTest() throws IOException, GigiApiException {
19 grant(u, Group.SUPPORTER);
20 addChallenge(u.getId(), CATSType.SUPPORT_DP_CHALLENGE_NAME);
21 cookie = cookieWithCertificateLogin(u);
22 assertEquals(302, post(cookie, SupportEnterTicketPage.PATH, "ticketno=a20140808.8&setTicket=action", 0).getResponseCode());