diff options
author | relves | 2007-05-08 06:29:32 +0000 |
---|---|---|
committer | relves | 2007-05-08 06:29:32 +0000 |
commit | 79a3682b49aba18aded70d8fe0c2f1162210df11 (patch) | |
tree | 12913684b9276c207e61885b2089f5baa1da266d /org.eclipse.mylyn.bugzilla.tests | |
parent | 926caa0c73d29d165a7c72df493ca946bc9edab0 (diff) | |
download | org.eclipse.mylyn.tasks-79a3682b49aba18aded70d8fe0c2f1162210df11.tar.gz org.eclipse.mylyn.tasks-79a3682b49aba18aded70d8fe0c2f1162210df11.tar.xz org.eclipse.mylyn.tasks-79a3682b49aba18aded70d8fe0c2f1162210df11.zip |
NEW - bug 151655: make dependent bug reports show up as subtasks in task list
https://bugs.eclipse.org/bugs/show_bug.cgi?id=151655
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
2 files changed, 11 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java index c4fe53f18..a818e0eae 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java @@ -124,6 +124,16 @@ public class BugzillaRepositoryConnectorTest extends AbstractBugzillaTest { assertEquals("http://mylar.eclipse.org/bugs222/show_bug.cgi?id=3", task.getTaskUrl()); } + public void testUpdateWithSubTasks() throws Exception { + init222(); + String taskNumber = "23"; + TasksUiPlugin.getDefault().getTaskDataManager().clear(); + assertEquals(0, TasksUiPlugin.getTaskListManager().getTaskList().getAllTasks().size()); + BugzillaTask task = this.generateLocalTaskAndDownload(taskNumber); + assertNotNull(task.getChildren()); + assertEquals(2, task.getChildren().size()); + } + public void testContextAttachFailure() throws Exception { init218(); BugzillaTask task = this.generateLocalTaskAndDownload("3"); diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java index 084b92825..74e7ca0d6 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java @@ -75,7 +75,7 @@ public class BugzillaTaskTest extends TestCase { resolvedAttribute.setValue(IBugzillaConstants.VALUE_STATUS_RESOLVED); taskData.addAttribute(BugzillaReportElement.BUG_STATUS.getKeyString(), resolvedAttribute); AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector(BugzillaCorePlugin.REPOSITORY_KIND); - connector.updateTaskFromTaskData(new TaskRepository(BugzillaCorePlugin.REPOSITORY_KIND, "http://eclipse.org"), task, taskData); + connector.updateTaskFromTaskData(new TaskRepository(BugzillaCorePlugin.REPOSITORY_KIND, "http://eclipse.org"), task, taskData, true); assertNotNull(task.getCompletionDate()); assertEquals(taskData.getAttributeFactory() .getDateForAttributeType(BugzillaReportElement.BUG_WHEN.getKeyString(), nowTimeStamp), task |