package net.sf.jabref.gui.help;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

import org.junit.Test;

import static junit.framework.TestCase.assertEquals;

public class HelpFileTest {
    private final String jabrefHelp = "http://help.jabref.org/en/";
    @Test
    public void referToValidPage() throws IOException {
        for (HelpFile help : HelpFile.values()) {
            URL url = new URL(jabrefHelp + help.getPageName());
            HttpURLConnection http = (HttpURLConnection) url.openConnection();
            assertEquals(200, http.getResponseCode());
        }
    }
}

@@ -544,16 +544,106 @@
 tion();%0A
+            http.setRequestProperty(%22User-Agent%22, %22Mozilla/5.0 (Windows NT 6.1; WOW64)%22);%0A
         

Set user agent to fix 403 status error