You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2015/03/09 11:39:39 UTC

[17/19] camel git commit: CAMEL-8456 - Remove addCompanyUpdateComment endpoint from camel-linkedin

CAMEL-8456 - Remove addCompanyUpdateComment endpoint from camel-linkedin


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3a6d2007
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3a6d2007
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3a6d2007

Branch: refs/heads/camel-2.14.x
Commit: 3a6d2007b9e1165df1eaff65ed8e212cb000f242
Parents: 0662bcf
Author: Tomas Rohovsky <tr...@redhat.com>
Authored: Fri Mar 6 21:20:58 2015 +0100
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Mar 9 18:38:40 2015 +0800

----------------------------------------------------------------------
 .../src/main/resources/linkedin-api-wadl.xml      | 10 ----------
 .../CompaniesResourceIntegrationTest.java         | 18 ------------------
 2 files changed, 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3a6d2007/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 c2fcb10..1766040 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
@@ -636,16 +636,6 @@
               </wadl:method>
             </wadl:resource>
 
-            <wadl:resource path="update-comments">
-            <wadl:method name="POST" id="addCompanyUpdateComment">
-                <wadl:request>
-                  <wadl:param href="#company-id"/>
-                  <wadl:param href="#update-key"/>
-                  <wadl:representation href="#update-comment"/>
-                </wadl:request>
-              </wadl:method>
-            </wadl:resource>
-
             <wadl:resource path="update-comments-as-company">
               <wadl:method name="POST" id="addCompanyUpdateCommentAsCompany">
                 <wadl:request>

http://git-wip-us.apache.org/repos/asf/camel/blob/3a6d2007/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 d3f7414..4e06f2b 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
@@ -42,20 +42,6 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
     private static final String PATH_PREFIX = LinkedInApiCollection.getCollection().getApiName(CompaniesResourceApiMethod.class).getName();
     private static final Long TEST_COMPANY_ID = 1337L;
 
-    // TODO provide parameter values for addCompanyUpdateComment
-    @Ignore
-    @Test
-    public void testAddCompanyUpdateComment() throws Exception {
-        final Map<String, Object> headers = new HashMap<String, Object>();
-        headers.put("CamelLinkedIn.company_id", 0L);
-        // parameter type is String
-        headers.put("CamelLinkedIn.update_key", null);
-        // parameter type is org.apache.camel.component.linkedin.api.model.UpdateComment
-        headers.put("CamelLinkedIn.updatecomment", null);
-
-        requestBodyAndHeaders("direct://ADDCOMPANYUPDATECOMMENT", null, headers);
-    }
-
     // TODO provide parameter values for addCompanyUpdateCommentAsCompany
     @Ignore
     @Test
@@ -300,10 +286,6 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
             public void configure() {
-                // test route for addCompanyUpdateComment
-                from("direct://ADDCOMPANYUPDATECOMMENT")
-                    .to("linkedin://" + PATH_PREFIX + "/addCompanyUpdateComment");
-
                 // test route for addCompanyUpdateCommentAsCompany
                 from("direct://ADDCOMPANYUPDATECOMMENTASCOMPANY")
                     .to("linkedin://" + PATH_PREFIX + "/addCompanyUpdateCommentAsCompany");