}
public void verify() throws IOException {
- String[] parts = extractLink().split("\\?");
+ String link = extractLink();
+ String[] parts = link.split("\\?");
URL u = new URL("https://" + ManagedTest.getServerName() + "/verify?" + parts[1]);
URLConnection csrfConn = u.openConnection();
* @see #receive()
*/
public TestMail poll() {
- try {
- return mails.poll(60, TimeUnit.SECONDS);
-
- } catch (InterruptedException e) {
- throw new AssertionError("Interrupted while recieving mails");
- }
+ return mails.poll();
}
@Override