X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2Fping%2FTestSSL.java;h=9404e17bc24de344074b7ed2ada4c645cdcca8ec;hp=2727fe05b4ede43d998f5f5d7a1814a4d2f7f43f;hb=e87392fd58e9152531a8d1cb34cb46e370062108;hpb=b1092da65fd373d945343e01dd8975ec3b84db0a diff --git a/tests/org/cacert/gigi/ping/TestSSL.java b/tests/org/cacert/gigi/ping/TestSSL.java index 2727fe05..9404e17b 100644 --- a/tests/org/cacert/gigi/ping/TestSSL.java +++ b/tests/org/cacert/gigi/ping/TestSSL.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.net.Socket; @@ -29,8 +30,8 @@ import javax.net.ssl.X509TrustManager; import org.cacert.gigi.GigiApiException; import org.cacert.gigi.dbObjects.Certificate; -import org.cacert.gigi.dbObjects.CertificateProfile; import org.cacert.gigi.dbObjects.Certificate.CSRType; +import org.cacert.gigi.dbObjects.CertificateProfile; import org.cacert.gigi.pages.account.domain.DomainOverview; import org.cacert.gigi.testUtils.IOUtils; import org.cacert.gigi.testUtils.PingTest; @@ -43,27 +44,27 @@ public class TestSSL extends PingTest { private Certificate c; - @Test + @Test(timeout = 70000) public void sslAndMailSuccess() throws IOException, InterruptedException, SQLException, GeneralSecurityException, GigiApiException { testEmailAndSSL(0, 0, true); } - @Test + @Test(timeout = 70000) public void sslWongTypeAndMailSuccess() throws IOException, InterruptedException, SQLException, GeneralSecurityException, GigiApiException { testEmailAndSSL(1, 0, true); } - @Test + @Test(timeout = 70000) public void sslOneMissingAndMailSuccess() throws IOException, InterruptedException, SQLException, GeneralSecurityException, GigiApiException { testEmailAndSSL(2, 0, true); } - @Test + @Test(timeout = 70000) public void sslBothMissingAndMailSuccess() throws IOException, InterruptedException, SQLException, GeneralSecurityException, GigiApiException { testEmailAndSSL(3, 0, true); } - @Test + @Test(timeout = 70000) public void sslWrongTypeAndMailFail() throws IOException, InterruptedException, SQLException, GeneralSecurityException, GigiApiException { testEmailAndSSL(1, 1, false); } @@ -88,7 +89,7 @@ public class TestSSL extends PingTest { private void testEmailAndSSL(int sslVariant, int emailVariant, boolean successMail) throws IOException, InterruptedException, SQLException, GeneralSecurityException, GigiApiException { String test = getTestProps().getProperty("domain.local"); - + assumeNotNull(test); URL u = new URL("https://" + getServerName() + DomainOverview.PATH); initailizeDomainForm(u);