diff options
author | relves | 2007-03-27 00:30:51 +0000 |
---|---|---|
committer | relves | 2007-03-27 00:30:51 +0000 |
commit | e46763c34b8acb65f72e5ca83937aa48163d4a92 (patch) | |
tree | bbf1e9d5122d10a56164fab5fd4d076b5c748974 /org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless | |
parent | 76f506a26fede2338f33fb48017b19b57ce4653e (diff) | |
download | org.eclipse.mylyn.tasks-e46763c34b8acb65f72e5ca83937aa48163d4a92.tar.gz org.eclipse.mylyn.tasks-e46763c34b8acb65f72e5ca83937aa48163d4a92.tar.xz org.eclipse.mylyn.tasks-e46763c34b8acb65f72e5ca83937aa48163d4a92.zip |
ASSIGNED - bug 176513: [api] add support for requesting multiple task data in single request
https://bugs.eclipse.org/bugs/show_bug.cgi?id=176513
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaQueryTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaQueryTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaQueryTest.java index 01f040503..4cdcb252e 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaQueryTest.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaQueryTest.java @@ -83,6 +83,30 @@ public class BugzillaQueryTest extends TestCase { // part of the bug assertEquals("P1", taskData.getAttributeValue(BugzillaReportElement.PRIORITY.getKeyString())); } + + // TODO: Uncomment when bug#176513 completed +// public void testGetBugs() throws Exception { +// HashSet<String> taskIds = new HashSet<String>(); +// taskIds.add("1"); +// taskIds.add("2"); +// taskIds.add("4"); +// Map<String, RepositoryTaskData> taskDataMap = handler.getTaskData(repository, taskIds); +// assertNotNull(taskDataMap); +// RepositoryTaskData taskData = taskDataMap.get("1"); +// assertEquals("user@mylar.eclipse.org", taskData.getAssignedTo()); +// assertEquals("foo", taskData.getDescription()); +// // You can use the getAttributeValue to pull up the information on any +// // part of the bug +// assertEquals("P1", taskData.getAttributeValue(BugzillaReportElement.PRIORITY.getKeyString())); +// +// taskData = taskDataMap.get("2"); +// assertEquals("nhapke@cs.ubc.ca", taskData.getAssignedTo()); +// assertEquals("search-match-test 1", taskData.getDescription()); +// +// taskData = taskDataMap.get("4"); +// assertEquals("relves@cs.ubc.ca", taskData.getReporter()); +// assertEquals("Test", taskData.getDescription()); +// } // README // public void testPostBug() throws Exception { |