Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2008-08-21 07:59:37 +0000
committerTomasz Zarna2008-08-21 07:59:37 +0000
commit8920c4cb89d26fc53eb832a88dfc34aebd82e0ab (patch)
tree7d8fe6276fb6e64a8a038534f707de4945d72ccd /tests/org.eclipse.core.tests.net
parent2f2e14e77c60040edbf041344198d86afb4ddc08 (diff)
downloadeclipse.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.java20
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);
+ }
+
}

Back to the top