diff options
author | Steffen Pingel | 2013-05-09 16:33:17 +0000 |
---|---|---|
committer | Steffen Pingel | 2013-05-09 16:33:17 +0000 |
commit | c1e8f6977eb7929920748cd56da6d1d367725336 (patch) | |
tree | b311ed96313f982a60a6814b0d3f55811040c8e4 | |
parent | c14566b7d2047b6747e359bf22ce5a17d972fe82 (diff) | |
download | org.eclipse.mylyn.commons-c1e8f6977eb7929920748cd56da6d1d367725336.tar.gz org.eclipse.mylyn.commons-c1e8f6977eb7929920748cd56da6d1d367725336.tar.xz org.eclipse.mylyn.commons-c1e8f6977eb7929920748cd56da6d1d367725336.zip |
407445: use mylyn.org for testGetTitleFromUrl()
Change-Id: I06ca478de61d60a506863a549cec48cb7902d94e
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=407445
-rw-r--r-- | org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java b/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java index 7b09467a..be271690 100644 --- a/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java +++ b/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/net/WebUtilTest.java @@ -215,12 +215,13 @@ public class WebUtilTest extends TestCase { public void testCreateHostConfigurationProxy() throws Exception { StubProgressMonitor monitor = new StubProgressMonitor(); HttpClient client = new HttpClient(); - WebUtil.createHostConfiguration(client, new WebLocation(TestUrl.DEFAULT.getHttpOk().toString(), null, null, new IProxyProvider() { - public Proxy getProxyForHost(String host, String proxyType) { - assertEquals(IProxyData.HTTP_PROXY_TYPE, proxyType); - return null; - } - }), monitor); + WebUtil.createHostConfiguration(client, new WebLocation(TestUrl.DEFAULT.getHttpOk().toString(), null, null, + new IProxyProvider() { + public Proxy getProxyForHost(String host, String proxyType) { + assertEquals(IProxyData.HTTP_PROXY_TYPE, proxyType); + return null; + } + }), monitor); WebUtil.createHostConfiguration(client, new WebLocation(TestUrl.DEFAULT.getHttpsOk().toString(), null, null, new IProxyProvider() { public Proxy getProxyForHost(String host, String proxyType) { @@ -599,7 +600,7 @@ public class WebUtilTest extends TestCase { public void testGetTitleFromUrl() throws Exception { assertEquals("Eclipse Mylyn Open Source Project", - WebUtil.getTitleFromUrl(new WebLocation("http://eclipse.org/mylyn"), null)); + WebUtil.getTitleFromUrl(new WebLocation(TestUrl.DEFAULT.getHttpOk().toString()), null)); // disabled: fails in environments where the DNS resolver redirects for unknown hosts // try { // String title = WebUtil.getTitleFromUrl(new WebLocation("http://invalidurl"), null); |