diff options
author | Tomasz Zarna | 2008-08-21 07:59:37 +0000 |
---|---|---|
committer | Tomasz Zarna | 2008-08-21 07:59:37 +0000 |
commit | 8920c4cb89d26fc53eb832a88dfc34aebd82e0ab (patch) | |
tree | 7d8fe6276fb6e64a8a038534f707de4945d72ccd /tests/org.eclipse.core.tests.net | |
parent | 2f2e14e77c60040edbf041344198d86afb4ddc08 (diff) | |
download | eclipse.platform.team-8920c4cb89d26fc53eb832a88dfc34aebd82e0ab.tar.gz eclipse.platform.team-8920c4cb89d26fc53eb832a88dfc34aebd82e0ab.tar.xz eclipse.platform.team-8920c4cb89d26fc53eb832a88dfc34aebd82e0ab.zip |
bug 238796: JSch non-proxy list should be considered case insensitive
Diffstat (limited to 'tests/org.eclipse.core.tests.net')
-rw-r--r-- | tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java index 835daf2bb..c0aa90e51 100644 --- a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java +++ b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/NetTest.java @@ -322,4 +322,24 @@ public class NetTest extends TestCase { this.getProxyManager().setNonProxiedHosts(oldHosts); } + public void testBug238796() throws CoreException { + setDataTest(IProxyData.HTTP_PROXY_TYPE); + setDataTest(IProxyData.HTTPS_PROXY_TYPE); + setDataTest(IProxyData.SOCKS_PROXY_TYPE); + + String[] oldHosts = this.getProxyManager().getNonProxiedHosts(); + + this.getProxyManager().setNonProxiedHosts( + new String[] { "nonexisting.com" }); + + IProxyData[] allData = this.getProxyManager().getProxyDataForHost( + "NONEXISTING.COM"); + assertEquals(0, allData.length); + IProxyData data = this.getProxyManager().getProxyDataForHost( + "NONEXISTING.COM", IProxyData.HTTP_PROXY_TYPE); + assertNull(data); + + this.getProxyManager().setNonProxiedHosts(oldHosts); + } + } |