Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2012-11-16 06:53:13 -0500
committerSteffen Pingel2013-07-04 17:09:42 -0400
commit4de53483f9cbdc8556101045d7dfa4d3402caf54 (patch)
tree0fc91a8cb9d991ef94293eba56619ec278cba32e /org.eclipse.mylyn.bugzilla.tests/src
parentf82af84a906206b9f3cdbf92132bf0db1f4832f9 (diff)
downloadorg.eclipse.mylyn.tasks-4de53483f9cbdc8556101045d7dfa4d3402caf54.tar.gz
org.eclipse.mylyn.tasks-4de53483f9cbdc8556101045d7dfa4d3402caf54.tar.xz
org.eclipse.mylyn.tasks-4de53483f9cbdc8556101045d7dfa4d3402caf54.zip
386764: [api] TaskMapping should be able to handle custom attributes
Added new API called TaskInitializationData to provide common mutators for ITaskMapping to be used for task data initialization. Also-By: Steffen Pingel <steffen.pingel@tasktop.com> Change-Id: I13c88b5e33a8ab097953833627383ae85cfa692f Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=386764 Signed-off-by: Benjamin Muskalla <benjamin.muskalla@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskDataHandlerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskDataHandlerTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskDataHandlerTest.java
index d99d53f95..32cf29108 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskDataHandlerTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskDataHandlerTest.java
@@ -18,8 +18,8 @@ import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
-import org.eclipse.mylyn.internal.tasks.core.DefaultTaskMapping;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
+import org.eclipse.mylyn.tasks.core.TaskInitializationData;
import org.eclipse.mylyn.tasks.core.TaskMapping;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler;
@@ -48,7 +48,7 @@ public class BugzillaTaskDataHandlerTest extends TestCase {
"test description for clone");
taskData.getRoot().getMappedAttribute(TaskAttribute.PRIORITY).setValue("P5");
ITaskMapping mapping = connector.getTaskMapping(taskData);
- DefaultTaskMapping taskSelection = new DefaultTaskMapping();
+ TaskInitializationData taskSelection = new TaskInitializationData();
taskSelection.setDescription("Test description");
TaskAttribute attrDescription = mapping.getTaskData().getRoot().getMappedAttribute(TaskAttribute.DESCRIPTION);

Back to the top