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:40 UTC

[18/19] camel git commit: CAMEL-8455 update_key option should be optional in getHistoricalStatusUpdateStatistics

CAMEL-8455 update_key option should be optional in getHistoricalStatusUpdateStatistics


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

Branch: refs/heads/camel-2.14.x
Commit: 4850333c9c4c2f070a35d1c160b8c6591475bab9
Parents: 3a6d200
Author: Tomas Rohovsky <tr...@redhat.com>
Authored: Fri Mar 6 20:28:42 2015 +0100
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Mar 9 18:38:46 2015 +0800

----------------------------------------------------------------------
 components/camel-linkedin/camel-linkedin-component/pom.xml  | 9 +++++++++
 .../linkedin/CompaniesResourceIntegrationTest.java          | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4850333c/components/camel-linkedin/camel-linkedin-component/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/pom.xml b/components/camel-linkedin/camel-linkedin-component/pom.xml
index 5a83416..0f3b301 100644
--- a/components/camel-linkedin/camel-linkedin-component/pom.xml
+++ b/components/camel-linkedin/camel-linkedin-component/pom.xml
@@ -130,8 +130,17 @@
                     <nullableOption>seniorities</nullableOption>
                     <nullableOption>start</nullableOption>
                     <nullableOption>start_timestamp</nullableOption>
+                    <nullableOption>statistics_update_key</nullableOption>
                     <nullableOption>time_granularity</nullableOption>
                   </nullableOptions>
+                  <substitutions>
+                    <substitution>
+                      <method>^getHistoricalStatusUpdateStatistics$</method>
+                       <argName>update_key</argName>
+                       <argType>java.lang.String</argType>
+                       <replacement>statistics_update_key</replacement>
+                    </substitution>
+                  </substitutions>
                 </api>
                 <api>
                   <apiName>groups</apiName>

http://git-wip-us.apache.org/repos/asf/camel/blob/4850333c/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 4e06f2b..acfcec6 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
@@ -210,7 +210,7 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
         // parameter type is org.apache.camel.component.linkedin.api.Timegranularity
         headers.put("CamelLinkedIn.time_granularity", null);
         // parameter type is String
-        headers.put("CamelLinkedIn.update_key", null);
+        headers.put("CamelLinkedIn.statistics_update_key", null);
 
         final org.apache.camel.component.linkedin.api.model.HistoricalStatusUpdateStatistics result = requestBodyAndHeaders("direct://GETHISTORICALSTATUSUPDATESTATISTICS", null, headers);