/** * *********************************************************************** Test parsing method. * ********************************************************************** */ @Test public void testParseProxySettings2() { FixedProxySelector rs = ProxyUtil.parseProxySettings("http://http_proxy.unit-test.invalid:8080/"); List<Proxy> psList = rs.select(TestUtil.HTTP_TEST_URI); assertEquals("HTTP @ http_proxy.unit-test.invalid:8080", psList.get(0).toString()); }
/** * *********************************************************************** Test parsing method. * ********************************************************************** */ @Test public void testParseProxySettings5() { FixedProxySelector rs = ProxyUtil.parseProxySettings("192.123.123.1:8080"); List<Proxy> psList = rs.select(TestUtil.HTTP_TEST_URI); assertEquals("HTTP @ 192.123.123.1:8080", psList.get(0).toString()); }