]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/TestSecurityHeaders.java
Format code according do BenBE's formatter.
[gigi.git] / tests / org / cacert / gigi / TestSecurityHeaders.java
index 75675c66f6fd44ecb6b5f7611b099dc7fafc40f6..ddff38ee2c096ac8b9d3e6da687d2014e503e35d 100644 (file)
@@ -10,20 +10,21 @@ import org.junit.Test;
 import static org.junit.Assert.*;
 
 public class TestSecurityHeaders extends ManagedTest {
-       @Test
-       public void testSTS() throws IOException {
-               HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
-               assertNotNull(uc.getHeaderField("Strict-Transport-Security"));
-       }
-
-       public void testCSP() throws IOException {
-               HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
-               assertNotNull(uc.getHeaderField("Content-Security-Policy"));
-       }
-
-       public void testAllowOrigin() throws IOException {
-               HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
-               assertNotNull(uc.getHeaderField("Access-Control-Allow-Origin"));
-
-       }
+
+    @Test
+    public void testSTS() throws IOException {
+        HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
+        assertNotNull(uc.getHeaderField("Strict-Transport-Security"));
+    }
+
+    public void testCSP() throws IOException {
+        HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
+        assertNotNull(uc.getHeaderField("Content-Security-Policy"));
+    }
+
+    public void testAllowOrigin() throws IOException {
+        HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
+        assertNotNull(uc.getHeaderField("Access-Control-Allow-Origin"));
+
+    }
 }