]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/TestSecurityHeaders.java
[EMPTY] Formatting with configured formatter.
[gigi.git] / tests / org / cacert / gigi / TestSecurityHeaders.java
index 9df4e22c978de866e2ce3140ee566005ad75a9e1..75675c66f6fd44ecb6b5f7611b099dc7fafc40f6 100644 (file)
@@ -12,19 +12,17 @@ import static org.junit.Assert.*;
 public class TestSecurityHeaders extends ManagedTest {
        @Test
        public void testSTS() throws IOException {
-               HttpURLConnection uc = (HttpURLConnection) new URL("https://"
-                               + getServerName()).openConnection();
+               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();
+               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();
+               HttpURLConnection uc = (HttpURLConnection) new URL("https://" + getServerName()).openConnection();
                assertNotNull(uc.getHeaderField("Access-Control-Allow-Origin"));
 
        }