Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-11-18 12:32:13 -0500
committerGerrit Code Review @ Eclipse.org2012-11-25 15:47:26 -0500
commit81a9b7df9024c7a0ce427e3e4dde2aa9177f42b6 (patch)
treea660bb0d7a715b2148671271cf91902957d7a52c /org.eclipse.mylyn.bugzilla.tests/src
parent7095e262f77af86e380190b9c32ba145b7b2fc66 (diff)
downloadorg.eclipse.mylyn.tasks-81a9b7df9024c7a0ce427e3e4dde2aa9177f42b6.tar.gz
org.eclipse.mylyn.tasks-81a9b7df9024c7a0ce427e3e4dde2aa9177f42b6.tar.xz
org.eclipse.mylyn.tasks-81a9b7df9024c7a0ce427e3e4dde2aa9177f42b6.zip
372600: redesign of RepositoryConfiguration
create new creation api Change-Id: If45d6c1daaedeed9771f2aad4bf94775e4da69cb Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=372600
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java
index 7bdee2973..10710fcc0 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaRepositoryConnectorStandaloneTest.java
@@ -384,15 +384,15 @@ public class BugzillaRepositoryConnectorStandaloneTest extends TestCase {
connector.removeConfiguration(config);
config = new RepositoryConfiguration();
config.setRepositoryUrl(repository.getRepositoryUrl());
- config.addPriority("MostHighest");
- config.addPriority("Highest");
- config.addPriority("Higher");
- config.addPriority("High");
- config.addPriority("Normal");
- config.addPriority("Low");
- config.addPriority("Lower");
- config.addPriority("Lowest");
- config.addPriority("MostLowest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "MostHighest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Highest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Higher");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "High");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Normal");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Low");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Lower");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Lowest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "MostLowest");
connector.addRepositoryConfiguration(config);
taskData.getRoot().createMappedAttribute(BugzillaAttribute.PRIORITY.getKey()).setValue("P1");
@@ -448,15 +448,15 @@ public class BugzillaRepositoryConnectorStandaloneTest extends TestCase {
connector.removeConfiguration(config);
config = new RepositoryConfiguration();
config.setRepositoryUrl(repository.getRepositoryUrl());
- config.addPriority("MostHighest");
- config.addPriority("Highest");
- config.addPriority("Higher");
- config.addPriority("High");
- config.addPriority("Normal");
- config.addPriority("Low");
- config.addPriority("Lower");
- config.addPriority("Lowest");
- config.addPriority("MostLowest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "MostHighest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Highest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Higher");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "High");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Normal");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Low");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Lower");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "Lowest");
+ config.addItem2Configuration(BugzillaAttribute.PRIORITY, "MostLowest");
taskData.getRoot().createMappedAttribute(BugzillaAttribute.PRIORITY.getKey()).setValue("P1");
assertEquals(PriorityLevel.P1, mapping.getPriorityLevel());

Back to the top