Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn')
-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 e2a068837..62cfdb8a5 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
@@ -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());
}
}
@@ -307,4 +308,4 @@ public class TracRepositoryConnectorTest extends TestCase {
assertEquals(new Date(123 * 1000), task.getCompletionDate());
}
-} \ No newline at end of file
+}

Back to the top