@Test public void connectionsTimeout() throws IOException { URLConnection connection = ConfigurationLocation.getDownloadURLConnection("http: assertEquals(connection.getReadTimeout(), ConfigurationLocation.READ_TIMEOUT); assertTrue(connection.getReadTimeout() > 0); }
public static URLConnection getDownloadURLConnection(String urlStr) throws IOException { URL url = new URL(urlStr); URLConnection connection = url.openConnection(); connection.setReadTimeout(READ_TIMEOUT); return connection; }
ConfigurationLocation { public static URLConnection getDownloadURLConnection(String urlStr) throws IOException { URL url = new URL(urlStr); URLConnection connection = url.openConnection(); connection.setReadTimeout(READ_TIMEOUT); return connection; } }
ConfigurationLocation { public static URLConnection getDownloadURLConnection(String urlStr) throws IOException { URL url = new URL(urlStr); URLConnection connection = url.openConnection(); connection.setReadTimeout(READ_TIMEOUT); return connection; }  }
ConfigurationLocation { public static URLConnection getDownloadURLConnection(String urlStr) throws IOException { URL url = new URL(urlStr); URLConnection connection = url.openConnection(); connection.setReadTimeout(READ_TIMEOUT); return connection; }  InputStream getInputStream(); static URLConnection getDownloadURLConnection(String urlStr); X509Certificate getVerificationCert(String certHashBase64,
            String hashAlgoId); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ConfigurationLocation { public static URLConnection getDownloadURLConnection(String urlStr) throws IOException { URL url = new URL(urlStr); URLConnection connection = url.openConnection(); connection.setReadTimeout(READ_TIMEOUT); return connection; }  InputStream getInputStream(); static URLConnection getDownloadURLConnection(String urlStr); X509Certificate getVerificationCert(String certHashBase64,
            String hashAlgoId); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final int READ_TIMEOUT; }