summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Padgett2011-11-09 17:48:41 (EST)
committer Michael Fiedler2011-11-11 12:52:12 (EST)
commitbbee50e7e47b59905836040c11fe30555ba1c4ca (patch)
treeab8ed3e0df4bba37c36a7d10db8af1468a16cb01
parentea725f29dcf4a2a9a66423421c97b09a6ee2470b (diff)
downloadorg.eclipse.lyo.testsuite-bbee50e7e47b59905836040c11fe30555ba1c4ca.zip
org.eclipse.lyo.testsuite-bbee50e7e47b59905836040c11fe30555ba1c4ca.tar.gz
org.eclipse.lyo.testsuite-bbee50e7e47b59905836040c11fe30555ba1c4ca.tar.bz2
Bug 363344 - Fix one additional problem with query capability URLs that
have query parameters
-rw-r--r--org.eclipse.lyo.testsuite.server/src/main/java/org/eclipse/lyo/testsuite/server/oslcv2tests/ChangeRequestRdfXmlTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.lyo.testsuite.server/src/main/java/org/eclipse/lyo/testsuite/server/oslcv2tests/ChangeRequestRdfXmlTests.java b/org.eclipse.lyo.testsuite.server/src/main/java/org/eclipse/lyo/testsuite/server/oslcv2tests/ChangeRequestRdfXmlTests.java
index da9ee6e..3c5e69d 100644
--- a/org.eclipse.lyo.testsuite.server/src/main/java/org/eclipse/lyo/testsuite/server/oslcv2tests/ChangeRequestRdfXmlTests.java
+++ b/org.eclipse.lyo.testsuite.server/src/main/java/org/eclipse/lyo/testsuite/server/oslcv2tests/ChangeRequestRdfXmlTests.java
@@ -115,8 +115,9 @@ public class ChangeRequestRdfXmlTests extends TestsBase {
query = query + "oslc.where=" + URLEncoder.encode(where, "UTF-8") + "&oslc.pageSize=1";
ArrayList<String> results = new ArrayList<String>();
- for (String queryBaseUri : capabilityURLsUsingRdfXml) {
- HttpResponse resp = OSLCUtils.getResponseFromUrl(setupBaseUrl, queryBaseUri + query, basicCreds,
+ for (String queryBaseUri : capabilityURLsUsingRdfXml) {
+ String queryUrl = OSLCUtils.addQueryStringToURL(queryBaseUri, query);
+ HttpResponse resp = OSLCUtils.getResponseFromUrl(setupBaseUrl, queryUrl, basicCreds,
OSLCConstants.CT_RDF, headers);
Model queryModel = ModelFactory.createDefaultModel();
queryModel.read(resp.getEntity().getContent(), queryBaseUri, OSLCConstants.JENA_RDF_XML);