X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2Fping%2FTestHTTP.java;h=dffab08f2413a05bfbe8fdc4f44934cf2f124e5b;hp=d6718241f33479b1a3d8b1de414d3f50a2029ebd;hb=1513e7223708e0f8a04b2e0ceebf27b3469a6bec;hpb=0b77293697a8a0fabf120c7b820a71ec94831c82 diff --git a/tests/org/cacert/gigi/ping/TestHTTP.java b/tests/org/cacert/gigi/ping/TestHTTP.java index d6718241..dffab08f 100644 --- a/tests/org/cacert/gigi/ping/TestHTTP.java +++ b/tests/org/cacert/gigi/ping/TestHTTP.java @@ -1,6 +1,7 @@ package org.cacert.gigi.ping; import static org.junit.Assert.*; +import static org.junit.Assume.*; import java.io.IOException; import java.io.InputStreamReader; @@ -12,7 +13,7 @@ import java.util.regex.Pattern; import javax.naming.NamingException; -import org.cacert.gigi.pages.account.DomainOverview; +import org.cacert.gigi.pages.account.domain.DomainOverview; import org.cacert.gigi.testUtils.IOUtils; import org.cacert.gigi.testUtils.PingTest; import org.cacert.gigi.testUtils.TestEmailReciever.TestMail; @@ -50,6 +51,7 @@ public class TestHTTP extends PingTest { public void testEmailAndHTTP(int httpVariant, int emailVariant, boolean successHTTP, boolean successMail) throws IOException, InterruptedException, SQLException { String test = getTestProps().getProperty("domain.http"); + assumeNotNull(test); URL u = new URL("https://" + getServerName() + DomainOverview.PATH); Matcher m = initailizeDomainForm(u); @@ -79,7 +81,9 @@ public class TestHTTP extends PingTest { } private String readHTTP(String token) throws IOException { - URL u = new URL("http://" + getTestProps().getProperty("domain.http") + "/cacert-" + token + ".txt"); + 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(); }