diff options
author | Frank Becker | 2013-03-11 19:32:56 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-05-08 19:58:56 +0000 |
commit | ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7 (patch) | |
tree | 4cbb372dbe7f6a6fa8a71a9de0859a29a31b59ef /org.eclipse.mylyn.bugzilla.tests | |
parent | a3474b6cc09d546b76aee19a21b003d54f8dd782 (diff) | |
download | org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.tar.gz org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.tar.xz org.eclipse.mylyn.tasks-ec1c6c9dfe7c3c63c0a55e0b278c57695772eef7.zip |
391137: Please change the default values when creating a new bug using
Help > Report Bug or Enhancement
Change-Id: I2029a5a8f2cf92e9050749460f1843c988758e9a
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=391137
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaFixture.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaFixture.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaFixture.java index 053f89e33..e4544b8db 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaFixture.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/support/BugzillaFixture.java @@ -37,7 +37,9 @@ import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin; import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector; import org.eclipse.mylyn.internal.bugzilla.core.BugzillaVersion; import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants; +import org.eclipse.mylyn.tasks.core.ITaskMapping; import org.eclipse.mylyn.tasks.core.RepositoryResponse; +import org.eclipse.mylyn.tasks.core.TaskMapping; import org.eclipse.mylyn.tasks.core.TaskRepository; import org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler; import org.eclipse.mylyn.tasks.core.data.TaskAttribute; @@ -198,11 +200,25 @@ public class BugzillaFixture extends TestFixture { if (description == null) { description = "description"; } + ITaskMapping initializationData = new TaskMapping() { + + @Override + public String getProduct() { + return "ManualTest"; + } + + @Override + public String getComponent() { + // ignore + return "ManualC1"; + } + + }; BugzillaClient client = client(level); AbstractTaskDataHandler taskDataHandler = connector().getTaskDataHandler(); TaskAttributeMapper mapper = taskDataHandler.getAttributeMapper(repository()); TaskData taskData = new TaskData(mapper, repository().getConnectorKind(), repository().getRepositoryUrl(), ""); - taskDataHandler.initializeTaskData(repository(), taskData, null, null); + taskDataHandler.initializeTaskData(repository(), taskData, initializationData, null); taskData.getRoot().createMappedAttribute(TaskAttribute.SUMMARY).setValue(summary); taskData.getRoot().createMappedAttribute(TaskAttribute.DESCRIPTION).setValue(description); taskData.getRoot().createMappedAttribute(BugzillaAttribute.OP_SYS.getKey()).setValue("All"); |