Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-07-02 06:52:44 +0000
committerspingel2009-07-02 06:52:44 +0000
commit602cf66147529d251c09abab68e4fbb77206bfc4 (patch)
tree120d1f49fd7b5d551e60c8fea4473a831a5bd89b /org.eclipse.mylyn.trac.tests
parent23e1fe9f6bd7555dcf3d3d0a0e641289257e1479 (diff)
downloadorg.eclipse.mylyn.tasks-602cf66147529d251c09abab68e4fbb77206bfc4.tar.gz
org.eclipse.mylyn.tasks-602cf66147529d251c09abab68e4fbb77206bfc4.tar.xz
org.eclipse.mylyn.tasks-602cf66147529d251c09abab68e4fbb77206bfc4.zip
NEW - bug 249947: Resolve field cannot be unset to an empty value
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249947
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
index bc44ec061..c8daa3504 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerTest.java
@@ -486,4 +486,26 @@ public class TracTaskDataHandlerTest extends TestCase {
}
}
+ public void testPostTaskDataUnsetResolutionXmlRpc010() throws Exception {
+ init(TracTestConstants.TEST_TRAC_010_URL, Version.XML_RPC);
+ postTaskDataUnsetResolution();
+ }
+
+ public void testPostTaskDataUnsetResolutionXmlRpc011() throws Exception {
+ init(TracTestConstants.TEST_TRAC_011_URL, Version.XML_RPC);
+ postTaskDataUnsetResolution();
+ }
+
+ private void postTaskDataUnsetResolution() throws Exception {
+ TracTicket ticket = TracTestUtil.createTicket(client, "postTaskDataUnsetResolution");
+ TaskData taskData = taskDataHandler.getTaskData(repository, ticket.getId() + "", new NullProgressMonitor());
+ TaskAttribute attribute = taskData.getRoot().getMappedAttribute(TaskAttribute.RESOLUTION);
+ attribute.setValue("fixed");
+ taskDataHandler.postTaskData(repository, taskData, null, new NullProgressMonitor());
+
+ // should not set resolution unless resolve operation is selected
+ taskData = taskDataHandler.getTaskData(repository, ticket.getId() + "", new NullProgressMonitor());
+ attribute = taskData.getRoot().getMappedAttribute(TaskAttribute.RESOLUTION);
+ assertEquals("", attribute.getValue());
+ }
}

Back to the top