import java.net.URLConnection;
import java.sql.Timestamp;
import java.util.Locale;
-import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.cacert.gigi.GigiApiException;
public class TestSEAdminPageDetails extends ClientTest {
- public TestSEAdminPageDetails() throws IOException {
- grant(email, Group.SUPPORTER);
+ public TestSEAdminPageDetails() throws IOException, GigiApiException {
+ grant(u, Group.SUPPORTER);
+ cookie = login(email, TEST_PASSWORD);
assertEquals(302, post(cookie, SupportEnterTicketPage.PATH, "ticketno=a20140808.8&setTicket=action", 0).getResponseCode());
}
return c;
}
- private String getFname(String res) {
- Pattern p = Pattern.compile("<span class='fname'>([^<]*)</span>");
- Matcher m = p.matcher(res);
- if (m.find()) {
- return m.group(1);
- }
- return null;
- }
-
}