Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-11-25 15:47:23 -0500
committerrelves2009-11-25 15:47:23 -0500
commitd469b0916eb6f214434380c7ca663de0c95a6009 (patch)
tree2c0da00fdec07a4d15b23e98b77983e0148c7c1c /org.eclipse.mylyn.oslc.tests
parent173d40086f013b834908cb3a828bb78547af243c (diff)
downloadorg.eclipse.mylyn.tasks-d469b0916eb6f214434380c7ca663de0c95a6009.tar.gz
org.eclipse.mylyn.tasks-d469b0916eb6f214434380c7ca663de0c95a6009.tar.xz
org.eclipse.mylyn.tasks-d469b0916eb6f214434380c7ca663de0c95a6009.zip
NEW - bug 281711: produce Java API for OSLC CM 1.0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281711
Diffstat (limited to 'org.eclipse.mylyn.oslc.tests')
-rw-r--r--org.eclipse.mylyn.oslc.tests/.classpath7
-rw-r--r--org.eclipse.mylyn.oslc.tests/.project28
-rw-r--r--org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--org.eclipse.mylyn.oslc.tests/META-INF/MANIFEST.MF15
-rw-r--r--org.eclipse.mylyn.oslc.tests/build.properties14
-rw-r--r--org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/ServiceDiscoveryTest.java110
-rw-r--r--org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/SimpleQueryTest.java75
-rw-r--r--org.eclipse.mylyn.oslc.tests/xml/change-request.xml98
-rw-r--r--org.eclipse.mylyn.oslc.tests/xml/query-response.xml2
-rw-r--r--org.eclipse.mylyn.oslc.tests/xml/service-descriptor.xml150
-rw-r--r--org.eclipse.mylyn.oslc.tests/xml/service-provider-catalog.xml11
11 files changed, 518 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.oslc.tests/.classpath b/org.eclipse.mylyn.oslc.tests/.classpath
new file mode 100644
index 000000000..64c5e31b7
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.mylyn.oslc.tests/.project b/org.eclipse.mylyn.oslc.tests/.project
new file mode 100644
index 000000000..1c13ba278
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.mylyn.oslc.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..83db19ec5
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Fri May 15 07:55:19 PDT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/org.eclipse.mylyn.oslc.tests/META-INF/MANIFEST.MF b/org.eclipse.mylyn.oslc.tests/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..45d77822b
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Tests
+Bundle-SymbolicName: org.eclipse.mylyn.oslc.tests
+Bundle-Version: 1.0.0.qualifier
+Require-Bundle: org.eclipse.core.runtime,
+ org.junit,
+ org.eclipse.mylyn.commons.core;bundle-version="3.2.0",
+ org.eclipse.mylyn.tasks.core;bundle-version="3.2.0",
+ org.eclipse.mylyn.commons.net;bundle-version="3.2.0",
+ org.jdom;bundle-version="1.0.0",
+ org.eclipse.mylyn.commons.tests;bundle-version="0.0.0",
+ org.eclipse.mylyn.oslc.cm.ui;bundle-version="3.2.0",
+ org.eclipse.mylyn.oslc.core;bundle-version="3.2.0"
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/org.eclipse.mylyn.oslc.tests/build.properties b/org.eclipse.mylyn.oslc.tests/build.properties
new file mode 100644
index 000000000..7326b5145
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/build.properties
@@ -0,0 +1,14 @@
+###############################################################################
+# Copyright (c) 2009 Tasktop Technologies and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Tasktop Technologies - initial API and implementation
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/ServiceDiscoveryTest.java b/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/ServiceDiscoveryTest.java
new file mode 100644
index 000000000..b75156563
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/ServiceDiscoveryTest.java
@@ -0,0 +1,110 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Tasktop Technologies and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.oslc.cm.tests;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.mylyn.commons.net.AbstractWebLocation;
+import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
+import org.eclipse.mylyn.commons.net.AuthenticationType;
+import org.eclipse.mylyn.commons.tests.support.CommonTestUtil;
+import org.eclipse.mylyn.internal.oslc.cm.ui.OslcClient;
+import org.eclipse.mylyn.internal.oslc.core.OslcCreationDialogDescriptor;
+import org.eclipse.mylyn.internal.oslc.core.OslcSelectionDialogDescriptor;
+import org.eclipse.mylyn.internal.oslc.core.OslcServiceDescriptor;
+import org.eclipse.mylyn.internal.oslc.core.OslcServiceProvider;
+import org.eclipse.mylyn.internal.oslc.core.client.AbstractOslcClient;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.tasks.core.TaskRepositoryLocationFactory;
+
+/**
+ * @author Robert Elves
+ */
+public class ServiceDiscoveryTest extends TestCase {
+ private TaskRepository repository;
+ private AbstractWebLocation location;
+ private AbstractOslcClient client;
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ this.repository = new TaskRepository("myoslcconnetorkind"
+ ,
+ "http://mylyn.eclipse.org/oslc/cqrest");
+ this.repository.setCredentials(AuthenticationType.REPOSITORY,
+ new AuthenticationCredentials("xxx", "xxx"), false);
+ this.location = new TaskRepositoryLocationFactory()
+ .createWebLocation(repository);
+ this.client = new OslcClient(location,
+ new OslcServiceDescriptor("http://mylyn.eclipse.org/oslc/cqrest"));
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+
+ public void testServiceCatalogParsing() throws IOException, CoreException {
+ File file = CommonTestUtil.getFile(ServiceDiscoveryTest.class, "xml/service-provider-catalog.xml");
+ FileInputStream inStream = new FileInputStream(file);
+ ArrayList list = new ArrayList();
+ client.parseServices(inStream, list, new NullProgressMonitor());
+ assertEquals(1, list.size());
+ OslcServiceProvider desc = (OslcServiceProvider)list.get(0);
+ assertEquals("http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL", desc.getUrl());
+ }
+
+ public void testServiceDescriptorParsing() throws IOException, CoreException {
+ File file = CommonTestUtil.getFile(ServiceDiscoveryTest.class, "xml/service-descriptor.xml");
+ FileInputStream inStream = new FileInputStream(file);
+ ArrayList list = new ArrayList();
+ OslcServiceDescriptor desc = new OslcServiceDescriptor("http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL");
+ client.parseServiceDescriptor(inStream, desc, new NullProgressMonitor());
+
+ assertEquals("RCM/CQ OSLC CM Service Description Document", desc.getTitle());
+ assertEquals("Rational Change Management/ClearQuest OSLC CM Services available for 7.0.0/SAMPL.", desc.getDescription());
+
+ // ServiceHome
+ assertEquals("Change Requests", desc.getHome().getTitle());
+ assertEquals("http://mylyn.eclipse.org/cqweb/restapi/7.0.0/SAMPL?format=html", desc.getHome().getUrl());
+
+ // Creation Dialogs
+ OslcCreationDialogDescriptor creationDialog = desc.getDefaultCreationDialog();
+ assertEquals("New Defect - IBM Rational ClearQuest", creationDialog.getTitle());
+ assertEquals("http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777224/creationDialog?dc%3Atype=Defect", creationDialog.getUrl());
+
+ // Factory
+ assertEquals("Unattended location for the creation of ClearQuest Records", desc.getDefaultFactory().getTitle());
+ assertEquals("http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record", desc.getDefaultFactory().getUrl());
+
+ // Selection Dialogs
+
+ assertTrue(desc.getSelectionDialogs().size() > 0);
+ OslcSelectionDialogDescriptor selectionDialog = desc.getDefaultSelectionDialog();
+ assertNotNull(selectionDialog);
+ assertEquals("640px", selectionDialog.getHintWidth());
+ assertEquals("540px", selectionDialog.getHintHeight());
+ assertEquals("Choose ClearQuest Record - IBM Rational ClearQuest", selectionDialog.getTitle());
+ assertEquals("ClearQuest Record", selectionDialog.getLabel());
+ assertEquals("http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777224%407.0.0%2FSAMPL&restrictType=false", selectionDialog.getUrl());
+ }
+
+
+
+}
diff --git a/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/SimpleQueryTest.java b/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/SimpleQueryTest.java
new file mode 100644
index 000000000..a5bcecec1
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/src/org/eclipse/mylyn/oslc/cm/tests/SimpleQueryTest.java
@@ -0,0 +1,75 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Tasktop Technologies and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tasktop Technologies - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.oslc.cm.tests;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.util.ArrayList;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.mylyn.commons.net.AbstractWebLocation;
+import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
+import org.eclipse.mylyn.commons.net.AuthenticationType;
+import org.eclipse.mylyn.commons.tests.support.CommonTestUtil;
+import org.eclipse.mylyn.internal.oslc.cm.ui.OslcClient;
+import org.eclipse.mylyn.internal.oslc.core.IOslcCoreConstants;
+import org.eclipse.mylyn.internal.oslc.core.OslcServiceDescriptor;
+import org.eclipse.mylyn.internal.oslc.core.client.AbstractOslcClient;
+import org.eclipse.mylyn.internal.oslc.core.cm.AbstractChangeRequest;
+import org.eclipse.mylyn.tasks.core.TaskRepository;
+import org.eclipse.mylyn.tasks.core.TaskRepositoryLocationFactory;
+
+/**
+ * @author Robert Elves
+ */
+public class SimpleQueryTest extends TestCase {
+ private TaskRepository repository;
+ private AbstractWebLocation location;
+ private AbstractOslcClient client;
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ this.repository = new TaskRepository(
+ IOslcCoreConstants.ID_PLUGIN,
+ "http://mylyn.eclipse.org/oslc/cqrest");
+ this.repository.setCredentials(AuthenticationType.REPOSITORY,
+ new AuthenticationCredentials("xxx", "xxx"), false);
+ this.location = new TaskRepositoryLocationFactory()
+ .createWebLocation(repository);
+ this.client = new OslcClient(location,
+ new OslcServiceDescriptor("http://mylyn.eclipse.org/oslc/cqrest"));
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+
+ public void testParseQueryResponse() throws Exception {
+ File file = CommonTestUtil.getFile(ServiceDiscoveryTest.class, "xml/query-response.xml");
+ FileInputStream inStream = new FileInputStream(file);
+ ArrayList list = new ArrayList();
+ client.parseQueryResponse(inStream, list, new NullProgressMonitor());
+ assertEquals(1, list.size());
+ AbstractChangeRequest desc = (AbstractChangeRequest)list.get(0);
+ assertEquals("test bug", desc.getTitle());
+ assertEquals("10", desc.getIdentifier());
+ assertEquals("", desc.getType()); // rdf:resource
+ assertEquals("test description", desc.getDescription());
+ assertEquals("", desc.getSubject());
+ assertEquals("", desc.getCreator()); // rdf:resource
+ assertEquals("2009-10-12T08:58:20.588Z", desc.getModified());
+ }
+
+}
diff --git a/org.eclipse.mylyn.oslc.tests/xml/change-request.xml b/org.eclipse.mylyn.oslc.tests/xml/change-request.xml
new file mode 100644
index 000000000..358e2800d
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/xml/change-request.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<oslc_cm:Collection xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
+ xmlns:oslc_disc="http://open-services.net/xmlns/discovery/1.0/"
+ xmlns:dc="http://purl.org/dc/terms/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
+ xmlns:jp="http://jazz.net/xmlns/prod/jazz/presentation/1.0/" xmlns:jd="http://jazz.net/xmlns/prod/jazz/discovery/1.0/"
+ xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:atom="http://www.w3.org/2005/Atom"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
+ oslc_cm:totalCount="1">
+ <oslc_cm:ChangeRequest
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/resource/itemOid/com.ibm.team.workitem.WorkItem/_PL7SELcNEd67as-op4LhuA">
+ <rtc_cm:filedAgainst
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_S3KqMbcMEd67as-op4LhuA" />
+ <rtc_cm:correctedEstimate />
+ <dc:created>2009-10-12T08:58:20.496Z</dc:created>
+ <dc:creator
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_KGRY4CFWEdq-WY5y7lROQw" />
+ <dc:description>test description</dc:description>
+ <rtc_cm:due />
+ <rtc_cm:estimate />
+ <rtc_cm:foundIn />
+ <dc:identifier>10</dc:identifier>
+ <rtc_cm:comments
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:comments" />
+ <oslc_cm:priority
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/enumerations/_RysVcLcMEd67as-op4LhuA/priority/priority.literal.l02" />
+ <rtc_cm:resolution />
+ <oslc_cm:severity
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/enumerations/_RysVcLcMEd67as-op4LhuA/severity/severity.literal.l3" />
+ <rtc_cm:state
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/workflows/_RysVcLcMEd67as-op4LhuA/states/com.ibm.team.workitem.defectWorkflow/1" />
+ <rtc_cm:subscribers
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:subscribers" />
+ <dc:subject />
+ <dc:modified>2009-10-12T08:58:20.588Z</dc:modified>
+ <rtc_cm:modifiedBy
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_KGRY4CFWEdq-WY5y7lROQw" />
+ <rtc_cm:ownedBy
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_KGRY4CFWEdq-WY5y7lROQw" />
+ <rtc_cm:projectArea
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/projectareas/_RysVcLcMEd67as-op4LhuA" />
+ <rtc_cm:resolved />
+ <rtc_cm:resolvedBy
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_YNh4MOlsEdq4xpiOKg5hvA" />
+ <rtc_cm:startDate />
+ <dc:title>test bug</dc:title>
+ <rtc_cm:plannedFor
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/iterations/_R4c_MrcMEd67as-op4LhuA" />
+ <rtc_cm:timeSpent />
+ <dc:type
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/types/_RysVcLcMEd67as-op4LhuA/defect" />
+ <rtc_cm:teamArea
+ rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/teamareas/_S0voULcMEd67as-op4LhuA" />
+ <rtc_cm:com.ibm.team.connector.ccbridge.common.act2wi.s
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.connector.ccbridge.common.act2wi.s" />
+ <rtc_cm:com.ibm.team.build.linktype.includedWorkItems.com.ibm.team.build.common.link.includedInBuilds
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.build.linktype.includedWorkItems.com.ibm.team.build.common.link.includedInBuilds" />
+ <calm:blocksTestExecutionRecord
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:blocksTestExecutionRecord" />
+ <rtc_cm:com.ibm.team.workitem.linktype.textualReference.textuallyReferenced
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.textualReference.textuallyReferenced" />
+ <calm:implementsRequirement
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:implementsRequirement" />
+ <calm:testedByTestCase
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:testedByTestCase" />
+ <rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment" />
+ <rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact" />
+ <rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds" />
+ <rtc_cm:com.ibm.team.workitem.linktype.relatedworkitem.related
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.relatedworkitem.related" />
+ <rtc_cm:com.ibm.team.scm.svn.linkType.workItem.s
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.scm.svn.linkType.workItem.s" />
+ <oslc_cm:relatedChangeManagement
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/oslc_cm:relatedChangeManagement" />
+ <rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copies
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copies" />
+ <rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copiedFrom
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copiedFrom" />
+ <rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.blocks
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.blocks" />
+ <rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.dependsOn
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.dependsOn" />
+ <rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicates
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicates" />
+ <rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicateOf
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicateOf" />
+ <rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet" />
+ <calm:affectsExecutionResult
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:affectsExecutionResult" />
+ <rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent" />
+ <rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children
+ oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children" />
+ </oslc_cm:ChangeRequest>
+</oslc_cm:Collection> \ No newline at end of file
diff --git a/org.eclipse.mylyn.oslc.tests/xml/query-response.xml b/org.eclipse.mylyn.oslc.tests/xml/query-response.xml
new file mode 100644
index 000000000..be224ec9f
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/xml/query-response.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?><oslc_cm:Collection xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" xmlns:oslc_disc="http://open-services.net/xmlns/discovery/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:jp="http://jazz.net/xmlns/prod/jazz/presentation/1.0/" xmlns:jd="http://jazz.net/xmlns/prod/jazz/discovery/1.0/" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/" oslc_cm:totalCount="1">
+<oslc_cm:ChangeRequest rdf:resource="https://mylyn.eclipse.org:9443/jazz/resource/itemOid/com.ibm.team.workitem.WorkItem/_PL7SELcNEd67as-op4LhuA"><rtc_cm:filedAgainst rdf:resource="https://mylyn.eclipse.org:9443/jazz/resource/itemOid/com.ibm.team.workitem.Category/_S3KqMbcMEd67as-op4LhuA"/><rtc_cm:correctedEstimate/><dc:created>2009-10-12T08:58:20.496Z</dc:created><dc:creator rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_KGRY4CFWEdq-WY5y7lROQw"/><dc:description>test description</dc:description><rtc_cm:due/><rtc_cm:estimate/><rtc_cm:foundIn/><dc:identifier>10</dc:identifier><rtc_cm:comments oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:comments"/><oslc_cm:priority rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/enumerations/_RysVcLcMEd67as-op4LhuA/priority/priority.literal.l02"/><rtc_cm:resolution/><oslc_cm:severity rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/enumerations/_RysVcLcMEd67as-op4LhuA/severity/severity.literal.l3"/><rtc_cm:state rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/workflows/_RysVcLcMEd67as-op4LhuA/states/com.ibm.team.workitem.defectWorkflow/1"/><rtc_cm:subscribers oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:subscribers"/><dc:subject/><dc:modified>2009-10-12T08:58:20.588Z</dc:modified><rtc_cm:modifiedBy rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_KGRY4CFWEdq-WY5y7lROQw"/><rtc_cm:ownedBy rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_KGRY4CFWEdq-WY5y7lROQw"/><rtc_cm:projectArea rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/projectareas/_RysVcLcMEd67as-op4LhuA"/><rtc_cm:resolved/><rtc_cm:resolvedBy rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/users/_YNh4MOlsEdq4xpiOKg5hvA"/><rtc_cm:startDate/><dc:title>test bug</dc:title><rtc_cm:plannedFor rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/iterations/_R4c_MrcMEd67as-op4LhuA"/><rtc_cm:timeSpent/><dc:type rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/types/_RysVcLcMEd67as-op4LhuA/defect"/><rtc_cm:teamArea rdf:resource="https://mylyn.eclipse.org:9443/jazz/oslc/teamareas/_S0voULcMEd67as-op4LhuA"/><rtc_cm:com.ibm.team.connector.ccbridge.common.act2wi.s oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.connector.ccbridge.common.act2wi.s"/><rtc_cm:com.ibm.team.build.linktype.includedWorkItems.com.ibm.team.build.common.link.includedInBuilds oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.build.linktype.includedWorkItems.com.ibm.team.build.common.link.includedInBuilds"/><calm:blocksTestExecutionRecord oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:blocksTestExecutionRecord"/><rtc_cm:com.ibm.team.workitem.linktype.textualReference.textuallyReferenced oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.textualReference.textuallyReferenced"/><calm:implementsRequirement oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:implementsRequirement"/><calm:testedByTestCase oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:testedByTestCase"/><rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment"/><rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.relatedartifact.relatedArtifact"/><rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.build.linktype.reportedWorkItems.com.ibm.team.build.common.link.reportedAgainstBuilds"/><rtc_cm:com.ibm.team.workitem.linktype.relatedworkitem.related oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.relatedworkitem.related"/><rtc_cm:com.ibm.team.scm.svn.linkType.workItem.s oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.scm.svn.linkType.workItem.s"/><oslc_cm:relatedChangeManagement oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/oslc_cm:relatedChangeManagement"/><rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copies oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copies"/><rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copiedFrom oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.copiedworkitem.copiedFrom"/><rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.blocks oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.blocks"/><rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.dependsOn oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.blocksworkitem.dependsOn"/><rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicates oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicates"/><rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicateOf oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.duplicateworkitem.duplicateOf"/><rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.filesystem.workitems.change_set.com.ibm.team.scm.ChangeSet"/><calm:affectsExecutionResult oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/calm:affectsExecutionResult"/><rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent"/><rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children oslc_cm:collref="https://mylyn.eclipse.org:9443/jazz/oslc/workitems/_PL7SELcNEd67as-op4LhuA/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children"/></oslc_cm:ChangeRequest></oslc_cm:Collection> \ No newline at end of file
diff --git a/org.eclipse.mylyn.oslc.tests/xml/service-descriptor.xml b/org.eclipse.mylyn.oslc.tests/xml/service-descriptor.xml
new file mode 100644
index 000000000..d212bf87e
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/xml/service-descriptor.xml
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<oslc_cm:ServiceDescriptor xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/">
+<dc:title>RCM/CQ OSLC CM Service Description Document</dc:title>
+<dc:description>Rational Change Management/ClearQuest OSLC CM Services available for 7.0.0/SAMPL.</dc:description>
+<dc:contributor rdf:resource="http://www.ibm.com/software/awdtools/clearquest/" oslc_cm:version="1.0">
+<dc:title>IBM Rational ClearQuest</dc:title>
+<dc:identifier>com.ibm.rational.cm.clearquest</dc:identifier>
+<oslc_cm:icon>http://mylyn.eclipse.org/oslc/_rcm-resources/clearquest.ico</oslc_cm:icon>
+</dc:contributor>
+<oslc_cm:changeRequests oslc_cm:domain="CM" oslc_cm:version="1.0">
+<oslc_cm:home>
+<dc:title>Change Requests</dc:title>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/restapi/7.0.0/SAMPL?format=html</oslc_cm:url>
+</oslc_cm:home>
+<oslc_cm:factory>
+<dc:title>Unattended location for the creation of ClearQuest Records</dc:title>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record</oslc_cm:url>
+</oslc_cm:factory>
+<oslc_cm:creationDialog oslc_cm:default="true" oslc_cm:hintWidth="703px" oslc_cm:hintHeight="510px">
+<dc:title>New Defect - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new Defect records</dc:description>
+<oslc_cm:label>Defect</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777224/creationDialog?dc%3Atype=Defect</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="727px" oslc_cm:hintHeight="471px">
+<dc:title>New Email_Rule - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new Email_Rule records</dc:description>
+<oslc_cm:label>Email_Rule</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777753/creationDialog?dc%3Atype=Email_Rule</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="777px" oslc_cm:hintHeight="471px">
+<dc:title>New New1 - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new New1 records</dc:description>
+<oslc_cm:label>New1</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16778055/creationDialog?dc%3Atype=New1</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="674px" oslc_cm:hintHeight="342px">
+<dc:title>New ratl_replicas - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new ratl_replicas records</dc:description>
+<oslc_cm:label>ratl_replicas</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777220/creationDialog?dc%3Atype=ratl_replicas</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="722px" oslc_cm:hintHeight="194px">
+<dc:title>New groups - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new groups records</dc:description>
+<oslc_cm:label>groups</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777222/creationDialog?dc%3Atype=groups</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="803px" oslc_cm:hintHeight="588px">
+<dc:title>New Customer - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new Customer records</dc:description>
+<oslc_cm:label>Customer</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777937/creationDialog?dc%3Atype=Customer</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="651px" oslc_cm:hintHeight="294px">
+<dc:title>New Project - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new Project records</dc:description>
+<oslc_cm:label>Project</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777899/creationDialog?dc%3Atype=Project</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:creationDialog oslc_cm:hintWidth="703px" oslc_cm:hintHeight="376px">
+<dc:title>New users - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for creating new users records</dc:description>
+<oslc_cm:label>users</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777223/creationDialog?dc%3Atype=users</oslc_cm:url>
+</oslc_cm:creationDialog>
+<oslc_cm:simpleQuery cq:supportsOslcSearchTerms="true">
+<dc:title>Simple GET-based Record Query</dc:title>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record</oslc_cm:url>
+</oslc_cm:simpleQuery>
+<oslc_cm:selectionDialog oslc_cm:default="true" oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose ClearQuest Record - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting ClearQuest Record records</dc:description>
+<oslc_cm:label>ClearQuest Record</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777224%407.0.0%2FSAMPL&amp;restrictType=false</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose Defect - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting Defect records</dc:description>
+<oslc_cm:label>Defect</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777224%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose Email_Rule - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting Email_Rule records</dc:description>
+<oslc_cm:label>Email_Rule</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777753%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose New1 - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting New1 records</dc:description>
+<oslc_cm:label>New1</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16778055%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose ratl_replicas - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting ratl_replicas records</dc:description>
+<oslc_cm:label>ratl_replicas</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777220%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose groups - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting groups records</dc:description>
+<oslc_cm:label>groups</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777222%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose history - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting history records</dc:description>
+<oslc_cm:label>history</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777219%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose Customer - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting Customer records</dc:description>
+<oslc_cm:label>Customer</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777937%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose attachments - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting attachments records</dc:description>
+<oslc_cm:label>attachments</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777221%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose Project - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting Project records</dc:description>
+<oslc_cm:label>Project</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777899%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<oslc_cm:selectionDialog oslc_cm:hintWidth="640px" oslc_cm:hintHeight="540px">
+<dc:title>Choose users - IBM Rational ClearQuest</dc:title>
+<dc:description>Web dialog for finding and selecting users records</dc:description>
+<oslc_cm:label>users</oslc_cm:label>
+<oslc_cm:url>http://mylyn.eclipse.org/cqweb/chooseRecord.cq?type=cq.repo.cq-rectype%3A16777223%407.0.0%2FSAMPL&amp;restrictType=true</oslc_cm:url>
+</oslc_cm:selectionDialog>
+<cq:namedQuery>
+<dc:title>Location for named queries and folders</dc:title>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/query-folder</oslc_cm:url>
+</cq:namedQuery>
+<cq:schema>
+<dc:title>URL to request record type definitions in XSD</dc:title>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type</oslc_cm:url>
+</cq:schema>
+<cq:defaultRecordType>
+<dc:title>URL of the default record type</dc:title>
+<oslc_cm:url>http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL/record-type/16777224</oslc_cm:url>
+</cq:defaultRecordType>
+</oslc_cm:changeRequests>
+</oslc_cm:ServiceDescriptor>
diff --git a/org.eclipse.mylyn.oslc.tests/xml/service-provider-catalog.xml b/org.eclipse.mylyn.oslc.tests/xml/service-provider-catalog.xml
new file mode 100644
index 000000000..f725f39f3
--- /dev/null
+++ b/org.eclipse.mylyn.oslc.tests/xml/service-provider-catalog.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ServiceProviderCatalog xmlns="http://open-services.net/xmlns/discovery/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/">
+<dc:title>Database</dc:title>
+<entry>
+<ServiceProvider>
+<dc:title>SAMPL</dc:title>
+<details rdf:resource="http://mylyn.eclipse.org/cqweb/restapi/7.0.0/SAMPL?format=html"/>
+<services rdf:resource="http://mylyn.eclipse.org/oslc/cqrest/repo/7.0.0/db/SAMPL"/>
+</ServiceProvider>
+</entry>
+</ServiceProviderCatalog> \ No newline at end of file

Back to the top