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

[09/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/3454c0d4
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3454c0d4
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3454c0d4

Branch: refs/heads/camel-2.15.x
Commit: 3454c0d417181836a96b960a6599f23ef7ba8419
Parents: ae47914
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:37:34 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/3454c0d4/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 156d832..9d3b396 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/3454c0d4/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);