Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-02-02 14:13:00 +0000
committerSteffen Pingel2012-02-02 14:13:00 +0000
commitc8c18b8a688bb7a96804b28a053c52ceabd0c6e5 (patch)
treeb9799b4b2a48fefbe4e3ab0541a6dfab2055609b
parentd4dcecf25e513365e26403bb58b24fa659428d46 (diff)
downloadorg.eclipse.mylyn.tasks-c8c18b8a688bb7a96804b28a053c52ceabd0c6e5.tar.gz
org.eclipse.mylyn.tasks-c8c18b8a688bb7a96804b28a053c52ceabd0c6e5.tar.xz
org.eclipse.mylyn.tasks-c8c18b8a688bb7a96804b28a053c52ceabd0c6e5.zip
REOPENED - bug 369697: fix test failures on Java 1.7
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369697
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java
index 666e9ebdc..dab3996c5 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java
@@ -39,8 +39,8 @@ import org.eclipse.mylyn.internal.trac.core.client.ITracClient.Version;
import org.eclipse.mylyn.internal.trac.core.model.TracPriority;
import org.eclipse.mylyn.internal.trac.core.model.TracSearch;
import org.eclipse.mylyn.internal.trac.core.model.TracTicket;
-import org.eclipse.mylyn.internal.trac.core.model.TracVersion;
import org.eclipse.mylyn.internal.trac.core.model.TracTicket.Key;
+import org.eclipse.mylyn.internal.trac.core.model.TracVersion;
import org.eclipse.mylyn.internal.trac.ui.wizard.TracRepositorySettingsPage;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITask;
@@ -268,19 +268,20 @@ public class TracRepositoryConnectorTest extends TestCase {
TaskData taskData = taskDataHandler.createTaskDataFromTicket(client, repository, ticket, null);
ITask task = TasksUi.getRepositoryModel().createTask(repository, taskData.getTaskId());
- task.setPriority("P1");
+ task.setPriority("P2");
// create task from task data
connector.updateTaskFromTaskData(repository, task, taskData);
assertEquals(repository.getRepositoryUrl() + ITracClient.TICKET_URL + "456", task.getUrl());
assertEquals("456", task.getTaskKey());
assertEquals("mysummary", task.getSummary());
- assertEquals("P3", task.getPriority());
// depending on the access mode createTaskDataFromTicket() creates different default attributes
if (client.getAccessMode() == Version.TRAC_0_9) {
assertEquals(AbstractTask.DEFAULT_TASK_KIND, task.getTaskKind());
+ assertEquals("P2", task.getPriority());
} else {
assertEquals("Defect", task.getTaskKind());
+ assertEquals("P3", task.getPriority());
}
}

Back to the top