diff options
author | relves | 2010-03-20 15:29:25 +0000 |
---|---|---|
committer | relves | 2010-03-20 15:29:25 +0000 |
commit | 5fc1c8c4b827cd41dc8a2c11f6cacf1236d33bcd (patch) | |
tree | c68d7481b5851fb97eb9f6eb762147a15aa560d6 /org.eclipse.mylyn.oslc.tests | |
parent | 670b200b08e71bff6796b341946bfcf763ea49ea (diff) | |
download | org.eclipse.mylyn.tasks-5fc1c8c4b827cd41dc8a2c11f6cacf1236d33bcd.tar.gz org.eclipse.mylyn.tasks-5fc1c8c4b827cd41dc8a2c11f6cacf1236d33bcd.tar.xz org.eclipse.mylyn.tasks-5fc1c8c4b827cd41dc8a2c11f6cacf1236d33bcd.zip |
NEW - bug 306604: [oslc] support ChangeRequest creation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=306604
Diffstat (limited to 'org.eclipse.mylyn.oslc.tests')
-rw-r--r-- | org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/RtcOlscTest.java | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/RtcOlscTest.java b/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/RtcOlscTest.java index cf3568b2a..1cb8f0c65 100644 --- a/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/RtcOlscTest.java +++ b/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/RtcOlscTest.java @@ -50,7 +50,9 @@ public class RtcOlscTest extends TestCase { private AbstractOslcClient client; - private static final String BASE_URL = "https://172.16.166.130:9443/jazz/oslc/workitems/catalog"; + private static final String BASE_URL = "https://192.168.0.3:9443/jazz/oslc/workitems/catalog"; + +// private static final String BASE_URL = "https://192.168.0.3:9443/jazz/oslc/contexts/_9Dyg4DLzEd-G-8cuiS4gvg/workitems/services.xml"; @Override protected void setUp() throws Exception { @@ -89,6 +91,24 @@ public class RtcOlscTest extends TestCase { }; } + // Test Passing when resource urls below match up with your particular RTC instance + // and when BASE_URL set to service url. + /*public void testChangeRequestCreation() throws Exception { + TaskData data = new TaskData(new TaskAttributeMapper(repository), "oslc", BASE_URL, ""); + data.getRoot().createAttribute(IOslcCoreConstants.ELEMENT_TITLE).setValue("New Title"); + data.getRoot().createAttribute(IOslcCoreConstants.ELEMENT_TYPE).setValue( + "https://192.168.0.3:9443/jazz/oslc/types/_9Dyg4DLzEd-G-8cuiS4gvg/defect"); + data.getRoot().createAttribute(IOslcCoreConstants.ELEMENT_DESCRIPTION).setValue("New Description"); + data.getRoot().createAttribute(IOslcCoreConstants.ELEMENT_SUBJECT).setValue("New Subject"); + data.getRoot() + .createAttribute("filedAgainst") + .setValue( + "https://192.168.0.3:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_9cYnETLzEd-G-8cuiS4gvg"); + + RepositoryResponse response = client.postTaskData(data, null); + assertNotNull(response); + }*/ + /** * Service Discovery */ |