"&adddomain&csrf=" + csrf;
URL u2 = sendDomainForm(u, content);
- TestMail mail = getMailReciever().recieve();
+ TestMail mail = getMailReciever().receive();
if (emailVariant == 0) {
- String link = mail.extractLink();
- new URL(link).openConnection().getHeaderField("");
+ mail.verify();
}
waitForPings(2);
String httpDom = getTestProps().getProperty("domain.http");
assumeNotNull(httpDom);
URL u = new URL("http://" + httpDom + "/cacert-" + token + ".txt");
- return IOUtils.readURL(new InputStreamReader(u.openStream())).trim();
+ return IOUtils.readURL(new InputStreamReader(u.openStream(), "UTF-8")).trim();
}
}