summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-09 12:33:17 (EDT)
committer Steffen Pingel2013-05-09 12:33:17 (EDT)
commitc1e8f6977eb7929920748cd56da6d1d367725336 (patch)
treeb311ed96313f982a60a6814b0d3f55811040c8e4
parentc14566b7d2047b6747e359bf22ce5a17d972fe82 (diff)
downloadorg.eclipse.mylyn.commons-c1e8f6977eb7929920748cd56da6d1d367725336.zip
org.eclipse.mylyn.commons-c1e8f6977eb7929920748cd56da6d1d367725336.tar.gz
org.eclipse.mylyn.commons-c1e8f6977eb7929920748cd56da6d1d367725336.tar.bz2
407445: use mylyn.org for testGetTitleFromUrl()refs/changes/83/12683/1
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.java15
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 7b09467..be27169 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);