X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2Fping%2FTestHTTP.java;h=dffab08f2413a05bfbe8fdc4f44934cf2f124e5b;hp=ef780befe4b4158369558fd0ee531e67b9fb5db7;hb=1513e7223708e0f8a04b2e0ceebf27b3469a6bec;hpb=b1092da65fd373d945343e01dd8975ec3b84db0a diff --git a/tests/org/cacert/gigi/ping/TestHTTP.java b/tests/org/cacert/gigi/ping/TestHTTP.java index ef780bef..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; @@ -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(); }