Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorekuleshov2006-12-20 21:44:59 -0500
committerekuleshov2006-12-20 21:44:59 -0500
commit18367fa0e24781d2ed669b5c11f97aba168e9318 (patch)
tree1a429eeaa47ff68a3269ef48cbb3565315b752f9
parent46c027252d5be1652df05079edaa5ccf2a73872e (diff)
downloadorg.eclipse.mylyn.tasks-18367fa0e24781d2ed669b5c11f97aba168e9318.tar.gz
org.eclipse.mylyn.tasks-18367fa0e24781d2ed669b5c11f97aba168e9318.tar.xz
org.eclipse.mylyn.tasks-18367fa0e24781d2ed669b5c11f97aba168e9318.zip
NEW - bug 159346: [connector] ChangeLogic
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159346
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java19
1 files changed, 12 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java
index 0a7963d9e..3c263ebd6 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java
@@ -66,12 +66,13 @@ public class WebRepositoryConnectorTest extends TestCase {
}
TaskRepository repository = new TaskRepository(WebTask.REPOSITORY_TYPE, template.repositoryUrl, params);
- if(repository.getUrl().equals("http://demo.otrs.org")) {
- // HACK: OTRS repository require auth
- repository.setAuthenticationCredentials("skywalker", "skywalker");
-// } else {
-// repository.setAuthenticationCredentials("user", "pwd");
- }
+ String url = repository.getUrl();
+ // HACK: repositories that require auth
+ if ("http://demo.otrs.org".equals(url)) {
+ repository.setAuthenticationCredentials("skywalker", "skywalker");
+ } else if ("http://changelogic.araneaframework.org".equals(url)) {
+ repository.setAuthenticationCredentials("mylar2", "mylar123");
+ }
String taskQueryUrl = WebRepositoryConnector.evaluateParams(template.taskQueryUrl, repository);
String buffer = WebRepositoryConnector.fetchResource(taskQueryUrl, params, repository);
@@ -96,12 +97,16 @@ public class WebRepositoryConnectorTest extends TestCase {
return template.label;
}
+ private static final String excluded = "http://demo.otrs.org,";
+
public static TestSuite suite() {
TestSuite suite = new ActiveTestSuite(WebRepositoryConnectorTest.class.getName());
AbstractRepositoryConnector repositoryConnector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector(WebTask.REPOSITORY_TYPE);
for (RepositoryTemplate template : repositoryConnector.getTemplates()) {
- suite.addTest(new WebRepositoryConnectorTest(template));
+ if (excluded.indexOf(template.repositoryUrl + ",") == -1) {
+ suite.addTest(new WebRepositoryConnectorTest(template));
+ }
}
return suite;

Back to the top