Searched refs:proxySelector (Results 1 – 2 of 2) sorted by relevance
29 private ProxySelector proxySelector; field in ProxySelectorTest39 proxySelector = ProxySelector.getDefault(); in setUp()66 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(ftpUri)); in testNoProxySystemProperty()67 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpUri)); in testNoProxySystemProperty()68 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpsUri)); in testNoProxySystemProperty()69 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri)); in testNoProxySystemProperty()70 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri)); in testNoProxySystemProperty()80 proxySelector.select(ftpUri)); in testProxyHostOnly()82 proxySelector.select(httpUri)); in testProxyHostOnly()84 proxySelector.select(httpsUri)); in testProxyHostOnly()[all …]
203 SingleProxySelector proxySelector = new SingleProxySelector(proxy); in testConnectOverProxy_implicit_http_fails() local204 ProxySelector.setDefault(proxySelector); in testConnectOverProxy_implicit_http_fails()208 IOException e = proxySelector.getLastException(); in testConnectOverProxy_implicit_http_fails()242 SingleProxySelector proxySelector = new SingleProxySelector(Proxy.NO_PROXY); in testInputUrlWithSpacesViaProxySelector() local243 ProxySelector.setDefault(proxySelector); in testInputUrlWithSpacesViaProxySelector()246 assertNull(proxySelector.getLastException()); in testInputUrlWithSpacesViaProxySelector()