CAMEL-8457 Correct return types of some endpoints in camel-linkedin
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5ca0c0cb Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5ca0c0cb Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5ca0c0cb Branch: refs/heads/camel-2.14.x Commit: 5ca0c0cbc344af823b681f6af5a101805d2d478c Parents: 57b084d Author: Tomas Rohovsky <[email protected]> Authored: Fri Mar 6 22:19:46 2015 +0100 Committer: Willem Jiang <[email protected]> Committed: Mon Mar 9 18:38:28 2015 +0800 ---------------------------------------------------------------------- .../src/main/resources/linkedin-api-wadl.xml | 11 +++++------ .../linkedin/CompaniesResourceIntegrationTest.java | 2 +- .../linkedin/PeopleResourceIntegrationTest.java | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/5ca0c0cb/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml index f784a45..e3c7b29 100644 --- a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml +++ b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml @@ -101,7 +101,7 @@ <wadl:param href="#secure-urls"/> </wadl:request> <wadl:response> - <wadl:representation mediaType="application/xml" element="tns:comments"/> + <wadl:representation href="#update-comments"/> </wadl:response> </wadl:method> </wadl:resource> @@ -193,11 +193,9 @@ <wadl:request> <wadl:param href="#group-id"/> <wadl:param href="#fields-selector"/> - <wadl:param href="#count"/> - <wadl:param href="#start"/> </wadl:request> <wadl:response> - <wadl:representation href="#groupmemberships"/> + <wadl:representation href="#groupmembership"/> </wadl:response> </wadl:method> </wadl:resource> @@ -633,7 +631,7 @@ <wadl:param href="#secure-urls"/> </wadl:request> <wadl:response> - <wadl:representation mediaType="application/xml" element="tns:comments"/> + <wadl:representation href="#update-comments"/> </wadl:response> </wadl:method> </wadl:resource> @@ -1037,9 +1035,10 @@ <wadl:representation mediaType="application/xml" element="tns:isfollowing" id="is-following"/> <wadl:representation mediaType="application/xml" element="tns:updatecomment" id="update-comment"/> + <wadl:representation mediaType="application/xml" element="tns:updatecomments" id="update-comments"/> <wadl:representation mediaType="application/xml" element="tns:jobbookmark" id="job-bookmark"/> <wadl:representation mediaType="application/xml" element="tns:jobbookmarks" id="job-bookmarks"/> <wadl:representation mediaType="application/xml" element="tns:jobsearch" id="job-search"/> -</wadl:application> \ No newline at end of file +</wadl:application> http://git-wip-us.apache.org/repos/asf/camel/blob/5ca0c0cb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java index 0521f4c..d3f7414 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java @@ -145,7 +145,7 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor // parameter type is Boolean headers.put("CamelLinkedIn.secure_urls", null); - final org.apache.camel.component.linkedin.api.model.Comments result = requestBodyAndHeaders("direct://GETCOMPANYUPDATECOMMENTS", null, headers); + final org.apache.camel.component.linkedin.api.model.UpdateComments result = requestBodyAndHeaders("direct://GETCOMPANYUPDATECOMMENTS", null, headers); assertNotNull("getCompanyUpdateComments result", result); LOG.debug("getCompanyUpdateComments: " + result); http://git-wip-us.apache.org/repos/asf/camel/blob/5ca0c0cb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java index 95c5991..287f445 100644 --- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java +++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PeopleResourceIntegrationTest.java @@ -170,7 +170,7 @@ public class PeopleResourceIntegrationTest extends AbstractLinkedInTestSupport { // parameter type is Long headers.put("CamelLinkedIn.start", null); - final org.apache.camel.component.linkedin.api.model.GroupMemberships result = requestBodyAndHeaders("direct://GETGROUPMEMBERSHIPSETTINGS", null, headers); + final org.apache.camel.component.linkedin.api.model.GroupMembership result = requestBodyAndHeaders("direct://GETGROUPMEMBERSHIPSETTINGS", null, headers); assertNotNull("getGroupMembershipSettings result", result); LOG.debug("getGroupMembershipSettings: " + result); @@ -419,7 +419,7 @@ public class PeopleResourceIntegrationTest extends AbstractLinkedInTestSupport { // parameter type is Boolean headers.put("CamelLinkedIn.secure_urls", null); - final org.apache.camel.component.linkedin.api.model.Comments result = requestBodyAndHeaders("direct://GETUPDATECOMMENTS", null, headers); + final org.apache.camel.component.linkedin.api.model.UpdateComments result = requestBodyAndHeaders("direct://GETUPDATECOMMENTS", null, headers); assertNotNull("getUpdateComments result", result); LOG.debug("getUpdateComments: " + result);
