diff options
author | Tomasz Zarna | 2008-12-16 10:56:09 +0000 |
---|---|---|
committer | Tomasz Zarna | 2008-12-16 10:56:09 +0000 |
commit | 3d485d841d265aed695b6c52dbe99a14e3bb62b4 (patch) | |
tree | 3db459fdb6f1641a41e0cc13427e2f35b6a97fb3 /tests/org.eclipse.core.tests.net | |
parent | acfba0e6c65457d56b870dec762491edd440f7d5 (diff) | |
download | eclipse.platform.team-3d485d841d265aed695b6c52dbe99a14e3bb62b4.tar.gz eclipse.platform.team-3d485d841d265aed695b6c52dbe99a14e3bb62b4.tar.xz eclipse.platform.team-3d485d841d265aed695b6c52dbe99a14e3bb62b4.zip |
bug 255814: [Net] Wrong methods and types used in org.eclipse.core.net
Diffstat (limited to 'tests/org.eclipse.core.tests.net')
-rw-r--r-- | tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/SystemProxyTest.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/SystemProxyTest.java b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/SystemProxyTest.java index 72ae7c839..c8ac16585 100644 --- a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/SystemProxyTest.java +++ b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/SystemProxyTest.java @@ -10,6 +10,8 @@ *******************************************************************************/ package org.eclipse.core.tests.net; +import java.net.URI; +import java.net.URISyntaxException; import java.util.HashMap; import java.util.Map; @@ -190,6 +192,29 @@ public class SystemProxyTest extends TestCase { checkProxySelector(); } + /** + * This test needs Windows IE settings manually set. See + * {@link #initializeTestProxyData()} for values. Additionally set + * <code>"eclipse.*;nonexisting.com;"</code> as proxy bypass in the IE + * settings. + * + * @throws URISyntaxException + */ + public void testNonProxiedHosts_WindowsIEManualSettings() + throws URISyntaxException { + IProxyData[] proxiesData = getProxyManager().select( + new URI("http://eclipse")); + assertEquals(1, proxiesData.length); + + proxiesData = getProxyManager().select( + new URI("http://eclipse.org/bugs")); + assertEquals(0, proxiesData.length); + + proxiesData = getProxyManager().select( + new URI("http://nonexisting.com")); + assertEquals(0, proxiesData.length); + } + private void initializeTestProxyData(String proxyDataSource) { proxyDataMap.put(IProxyData.HTTP_PROXY_TYPE, new ProxyData( IProxyData.HTTP_PROXY_TYPE, "127.0.0.1", 8081, false, |