Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 197406
Collapse All | Expand All

(-)src/org/eclipse/mylyn/jira/tests/JiraRpcClientTest.java (+11 lines)
Lines 436-439 Link Here
436
		assertFalse(issue.isWatched());
436
		assertFalse(issue.isWatched());
437
	}
437
	}
438
438
439
	public void testBasicAuth() throws Exception {
440
		basicAuth(JiraTestConstants.JIRA_39_BASIC_AUTH_URL);
441
	}
442
443
	private void basicAuth(String url) throws Exception {
444
		Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.GUEST);
445
		Credentials httpCredentials = TestUtil.readCredentials(PrivilegeLevel.USER);
446
		client = new JiraRpcClient(url, false, credentials.username, credentials.password, Proxy.NO_PROXY, httpCredentials.username, httpCredentials.password);
447
		assertNotNull(client.getServerInfo());
448
	}
449
439
}
450
}
(-)src/org/eclipse/mylyn/jira/tests/JiraTestConstants.java (+2 lines)
Lines 12-16 Link Here
12
12
13
	public static final String JIRA_39_URL = System.getProperty("jira.server.url",
13
	public static final String JIRA_39_URL = System.getProperty("jira.server.url",
14
			"http://mylyn.eclipse.org/jira-enterprise-3.9");
14
			"http://mylyn.eclipse.org/jira-enterprise-3.9");
15
	
16
	public static final String JIRA_39_BASIC_AUTH_URL = JIRA_39_URL + "-basic-auth";
15
17
16
}
18
}

Return to bug 197406