]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/TestSecurityHeaders.java
upd: rename package name and all references to it
[gigi.git] / tests / org / cacert / gigi / TestSecurityHeaders.java
diff --git a/tests/org/cacert/gigi/TestSecurityHeaders.java b/tests/org/cacert/gigi/TestSecurityHeaders.java
deleted file mode 100644 (file)
index 8149d32..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-package org.cacert.gigi;
-
-import static org.junit.Assert.*;
-
-import java.io.IOException;
-import java.net.HttpURLConnection;
-
-import org.cacert.gigi.testUtils.ManagedTest;
-import org.junit.Test;
-
-public class TestSecurityHeaders extends ManagedTest {
-
-    @Test
-    public void testSTS() throws IOException {
-        HttpURLConnection uc = get(null, "/");
-        assertNotNull(uc.getHeaderField("Strict-Transport-Security"));
-    }
-
-    public void testCSP() throws IOException {
-        HttpURLConnection uc = get(null, "/");
-        assertNotNull(uc.getHeaderField("Content-Security-Policy"));
-    }
-
-    public void testAllowOrigin() throws IOException {
-        HttpURLConnection uc = get(null, "/");
-        assertNotNull(uc.getHeaderField("Access-Control-Allow-Origin"));
-
-    }
-}