diff options
author | relves | 2009-12-12 18:32:04 +0000 |
---|---|---|
committer | relves | 2009-12-12 18:32:04 +0000 |
commit | d3a634c8563bd719aaee4b031f5d0e983ff4abf3 (patch) | |
tree | e838c051d4ca4d01cfbe47e358f2ebe22b638344 | |
parent | 9176714b7ce782162a871e63be8e857253427969 (diff) | |
download | org.eclipse.mylyn.tasks-d3a634c8563bd719aaee4b031f5d0e983ff4abf3.tar.gz org.eclipse.mylyn.tasks-d3a634c8563bd719aaee4b031f5d0e983ff4abf3.tar.xz org.eclipse.mylyn.tasks-d3a634c8563bd719aaee4b031f5d0e983ff4abf3.zip |
NEW - bug 290465: fix Bugzilla test suite
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290465
-rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepository32Test.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepository32Test.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepository32Test.java index ef1f581bd..698584cb3 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepository32Test.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepository32Test.java @@ -46,19 +46,14 @@ import org.eclipse.mylyn.tasks.core.data.TaskDataModel; import org.eclipse.mylyn.tasks.core.data.TaskMapper; import org.eclipse.mylyn.tasks.core.sync.SubmitJob; import org.eclipse.mylyn.tasks.ui.TasksUi; +import org.eclipse.mylyn.tests.util.TestUtil.PrivilegeLevel; public class BugzillaRepository32Test extends AbstractBugzillaTest { public void testBugUpdate() throws Exception { - init323(); - String taskNumber = "1"; - ITask task = generateLocalTaskAndDownload(taskNumber); - assertNotNull(task); - String tokenValue = task.getAttribute("token"); - assertNotNull(tokenValue); - TaskData taskData = TasksUiPlugin.getTaskDataManager().getTaskData(task); + TaskData taskData = BugzillaFixture.current().createTask(PrivilegeLevel.USER, null, null); assertNotNull(taskData); - assertEquals(tokenValue, taskData.getRoot().getAttribute("token").getValue()); + assertNotNull(taskData.getRoot().getAttribute("token")); //remove the token (i.e. unpatched Bugzilla 3.2.2) taskData.getRoot().removeAttribute("token"); @@ -76,9 +71,8 @@ public class BugzillaRepository32Test extends AbstractBugzillaTest { changed.add(attrPriority); BugzillaFixture.current().submitTask(taskData, client); - task = generateLocalTaskAndDownload(taskNumber); - assertNotNull(task); - assertEquals(!p1, task.getPriority().equals("P1")); + taskData = BugzillaFixture.current().getTask(taskData.getTaskId(), client); + assertEquals(!p1, taskData.getRoot().getMappedAttribute(TaskAttribute.PRIORITY).getValue().equals("P1")); } |