camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/3] git commit: Fix a bunch of checkstyle issues in camel-linkedin
Date Wed, 13 Aug 2014 15:49:05 GMT
Fix a bunch of checkstyle issues 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/b144cffb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b144cffb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b144cffb

Branch: refs/heads/master
Commit: b144cffb2bc2f24d8a1379f6898c7f38e3fda998
Parents: 70334b8
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Aug 13 11:41:50 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Aug 13 11:41:50 2014 -0400

----------------------------------------------------------------------
 .../component/linkedin/api/DoubleAdapter.java   |  3 +-
 .../component/linkedin/api/LongAdapter.java     |  3 +-
 .../api/AbstractResourceIntegrationTest.java    |  4 +-
 .../internal/LinkedInPropertiesHelper.java      |  2 +-
 .../linkedin/AbstractLinkedInTestSupport.java   | 16 ++++
 .../CommentsResourceIntegrationTest.java        | 27 ++++--
 .../CompaniesResourceIntegrationTest.java       | 53 ++++++++----
 .../linkedin/GroupsResourceIntegrationTest.java | 25 +++++-
 .../linkedin/JobsResourceIntegrationTest.java   | 30 +++++--
 .../linkedin/PeopleResourceIntegrationTest.java | 87 ++++++++++++--------
 .../linkedin/PostsResourceIntegrationTest.java  | 34 ++++++--
 .../linkedin/SearchResourceIntegrationTest.java | 27 ++++--
 12 files changed, 221 insertions(+), 90 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/DoubleAdapter.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/DoubleAdapter.java
b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/DoubleAdapter.java
index 029681a..05a1a8e 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/DoubleAdapter.java
+++ b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/DoubleAdapter.java
@@ -18,8 +18,7 @@ package org.apache.camel.component.linkedin.api;
 
 import javax.xml.bind.annotation.adapters.XmlAdapter;
 
-public class DoubleAdapter extends XmlAdapter<String, Double>
-{
+public class DoubleAdapter extends XmlAdapter<String, Double> {
 
     public Double unmarshal(String value) {
         return javax.xml.bind.DatatypeConverter.parseDouble(value);

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LongAdapter.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LongAdapter.java
b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LongAdapter.java
index 3fe63cc..9288108 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LongAdapter.java
+++ b/components/camel-linkedin/camel-linkedin-api/src/main/java/org/apache/camel/component/linkedin/api/LongAdapter.java
@@ -18,8 +18,7 @@ package org.apache.camel.component.linkedin.api;
 
 import javax.xml.bind.annotation.adapters.XmlAdapter;
 
-public class LongAdapter extends XmlAdapter<String, Long>
-{
+public class LongAdapter extends XmlAdapter<String, Long> {
 
     public Long unmarshal(String value) {
         return new Long(value);

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-api/src/test/java/org/apache/camel/component/linkedin/api/AbstractResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/test/java/org/apache/camel/component/linkedin/api/AbstractResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-api/src/test/java/org/apache/camel/component/linkedin/api/AbstractResourceIntegrationTest.java
index 1d4c536..d8f474e 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/test/java/org/apache/camel/component/linkedin/api/AbstractResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-api/src/test/java/org/apache/camel/component/linkedin/api/AbstractResourceIntegrationTest.java
@@ -102,8 +102,8 @@ public class AbstractResourceIntegrationTest extends Assert {
 
     protected static <T> T getResource(Class<T> resourceClass) {
         if (requestFilter == null) {
-            throw new IllegalStateException(AbstractResourceIntegrationTest.class.getName()
+
-                ".beforeClass must be invoked before getResource");
+            throw new IllegalStateException(AbstractResourceIntegrationTest.class.getName()
+                                            + ".beforeClass must be invoked before getResource");
         }
         final T resource = JAXRSClientFactory.create(LinkedInOAuthRequestFilter.BASE_ADDRESS,
resourceClass,
 //            Arrays.asList(new Object[] { requestFilter, new LinkedInExceptionResponseFilter()
} ));

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/internal/LinkedInPropertiesHelper.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/internal/LinkedInPropertiesHelper.java
b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/internal/LinkedInPropertiesHelper.java
index b4a31b6..d73b125 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/internal/LinkedInPropertiesHelper.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/main/java/org/apache/camel/component/linkedin/internal/LinkedInPropertiesHelper.java
@@ -16,9 +16,9 @@
  */
 package org.apache.camel.component.linkedin.internal;
 
+import org.apache.camel.component.linkedin.LinkedInConfiguration;
 import org.apache.camel.util.component.ApiMethodPropertiesHelper;
 
-import org.apache.camel.component.linkedin.LinkedInConfiguration;
 
 /**
  * Singleton {@link ApiMethodPropertiesHelper} for LinkedIn component.

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/AbstractLinkedInTestSupport.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/AbstractLinkedInTestSupport.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/AbstractLinkedInTestSupport.java
index 1282aef..4a0ea70 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/AbstractLinkedInTestSupport.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/AbstractLinkedInTestSupport.java
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.linkedin;
 
 import java.io.IOException;

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java
index 844ff7a..2f4c754 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CommentsResourceIntegrationTest.java
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:10 PDT 2014
@@ -8,14 +24,15 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+
+import org.apache.camel.component.linkedin.internal.CommentsResourceApiMethod;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.CommentsResourceApiMethod;
-
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.CommentsResource} APIs.
  */
@@ -54,11 +71,11 @@ public class CommentsResourceIntegrationTest extends AbstractLinkedInTestSupport
             public void configure() {
                 // test route for getComment
                 from("direct://GETCOMMENT")
-                  .to("linkedin://" + PATH_PREFIX + "/getComment");
+                    .to("linkedin://" + PATH_PREFIX + "/getComment");
 
                 // test route for removeComment
                 from("direct://REMOVECOMMENT")
-                  .to("linkedin://" + PATH_PREFIX + "/removeComment?inBody=comment_id");
+                    .to("linkedin://" + PATH_PREFIX + "/removeComment?inBody=comment_id");
 
             }
         };

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/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 fd7cb47..0521f4c 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
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:10 PDT 2014
@@ -8,13 +24,14 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.linkedin.internal.CompaniesResourceApiMethod;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.CompaniesResourceApiMethod;
 
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.CompaniesResource} APIs.
@@ -285,67 +302,67 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
             public void configure() {
                 // test route for addCompanyUpdateComment
                 from("direct://ADDCOMPANYUPDATECOMMENT")
-                  .to("linkedin://" + PATH_PREFIX + "/addCompanyUpdateComment");
+                    .to("linkedin://" + PATH_PREFIX + "/addCompanyUpdateComment");
 
                 // test route for addCompanyUpdateCommentAsCompany
                 from("direct://ADDCOMPANYUPDATECOMMENTASCOMPANY")
-                  .to("linkedin://" + PATH_PREFIX + "/addCompanyUpdateCommentAsCompany");
+                    .to("linkedin://" + PATH_PREFIX + "/addCompanyUpdateCommentAsCompany");
 
                 // test route for addShare
                 from("direct://ADDSHARE")
-                  .to("linkedin://" + PATH_PREFIX + "/addShare");
+                    .to("linkedin://" + PATH_PREFIX + "/addShare");
 
                 // test route for getCompanies
                 from("direct://GETCOMPANIES")
-                  .to("linkedin://" + PATH_PREFIX + "/getCompanies");
+                    .to("linkedin://" + PATH_PREFIX + "/getCompanies");
 
                 // test route for getCompanyById
                 from("direct://GETCOMPANYBYID")
-                  .to("linkedin://" + PATH_PREFIX + "/getCompanyById");
+                    .to("linkedin://" + PATH_PREFIX + "/getCompanyById");
 
                 // test route for getCompanyByName
                 from("direct://GETCOMPANYBYNAME")
-                  .to("linkedin://" + PATH_PREFIX + "/getCompanyByName");
+                    .to("linkedin://" + PATH_PREFIX + "/getCompanyByName");
 
                 // test route for getCompanyUpdateComments
                 from("direct://GETCOMPANYUPDATECOMMENTS")
-                  .to("linkedin://" + PATH_PREFIX + "/getCompanyUpdateComments");
+                    .to("linkedin://" + PATH_PREFIX + "/getCompanyUpdateComments");
 
                 // test route for getCompanyUpdateLikes
                 from("direct://GETCOMPANYUPDATELIKES")
-                  .to("linkedin://" + PATH_PREFIX + "/getCompanyUpdateLikes");
+                    .to("linkedin://" + PATH_PREFIX + "/getCompanyUpdateLikes");
 
                 // test route for getCompanyUpdates
                 from("direct://GETCOMPANYUPDATES")
-                  .to("linkedin://" + PATH_PREFIX + "/getCompanyUpdates");
+                    .to("linkedin://" + PATH_PREFIX + "/getCompanyUpdates");
 
                 // test route for getHistoricalFollowStatistics
                 from("direct://GETHISTORICALFOLLOWSTATISTICS")
-                  .to("linkedin://" + PATH_PREFIX + "/getHistoricalFollowStatistics");
+                    .to("linkedin://" + PATH_PREFIX + "/getHistoricalFollowStatistics");
 
                 // test route for getHistoricalStatusUpdateStatistics
                 from("direct://GETHISTORICALSTATUSUPDATESTATISTICS")
-                  .to("linkedin://" + PATH_PREFIX + "/getHistoricalStatusUpdateStatistics");
+                    .to("linkedin://" + PATH_PREFIX + "/getHistoricalStatusUpdateStatistics");
 
                 // test route for getNumberOfFollowers
                 from("direct://GETNUMBEROFFOLLOWERS")
-                  .to("linkedin://" + PATH_PREFIX + "/getNumberOfFollowers");
+                    .to("linkedin://" + PATH_PREFIX + "/getNumberOfFollowers");
 
                 // test route for getStatistics
                 from("direct://GETSTATISTICS")
-                  .to("linkedin://" + PATH_PREFIX + "/getStatistics?inBody=company_id");
+                    .to("linkedin://" + PATH_PREFIX + "/getStatistics?inBody=company_id");
 
                 // test route for isShareEnabled
                 from("direct://ISSHAREENABLED")
-                  .to("linkedin://" + PATH_PREFIX + "/isShareEnabled?inBody=company_id");
+                    .to("linkedin://" + PATH_PREFIX + "/isShareEnabled?inBody=company_id");
 
                 // test route for isViewerShareEnabled
                 from("direct://ISVIEWERSHAREENABLED")
-                  .to("linkedin://" + PATH_PREFIX + "/isViewerShareEnabled?inBody=company_id");
+                    .to("linkedin://" + PATH_PREFIX + "/isViewerShareEnabled?inBody=company_id");
 
                 // test route for likeCompanyUpdate
                 from("direct://LIKECOMPANYUPDATE")
-                  .to("linkedin://" + PATH_PREFIX + "/likeCompanyUpdate");
+                    .to("linkedin://" + PATH_PREFIX + "/likeCompanyUpdate");
 
             }
         };

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java
index 0c7ab84..2da02e7 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/GroupsResourceIntegrationTest.java
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:10 PDT 2014
@@ -8,13 +24,14 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.linkedin.internal.GroupsResourceApiMethod;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.GroupsResourceApiMethod;
 
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.GroupsResource} APIs.
@@ -53,11 +70,11 @@ public class GroupsResourceIntegrationTest extends AbstractLinkedInTestSupport
{
             public void configure() {
                 // test route for addPost
                 from("direct://ADDPOST")
-                  .to("linkedin://" + PATH_PREFIX + "/addPost");
+                    .to("linkedin://" + PATH_PREFIX + "/addPost");
 
                 // test route for getGroup
                 from("direct://GETGROUP")
-                  .to("linkedin://" + PATH_PREFIX + "/getGroup?inBody=group_id");
+                    .to("linkedin://" + PATH_PREFIX + "/getGroup?inBody=group_id");
 
             }
         };

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java
index 43cf3c0..3f9029b 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/JobsResourceIntegrationTest.java
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:11 PDT 2014
@@ -8,14 +24,14 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.linkedin.internal.JobsResourceApiMethod;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.JobsResourceApiMethod;
-
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.JobsResource} APIs.
  */
@@ -73,19 +89,19 @@ public class JobsResourceIntegrationTest extends AbstractLinkedInTestSupport
{
             public void configure() {
                 // test route for addJob
                 from("direct://ADDJOB")
-                  .to("linkedin://" + PATH_PREFIX + "/addJob?inBody=job");
+                    .to("linkedin://" + PATH_PREFIX + "/addJob?inBody=job");
 
                 // test route for editJob
                 from("direct://EDITJOB")
-                  .to("linkedin://" + PATH_PREFIX + "/editJob");
+                    .to("linkedin://" + PATH_PREFIX + "/editJob");
 
                 // test route for getJob
                 from("direct://GETJOB")
-                  .to("linkedin://" + PATH_PREFIX + "/getJob");
+                    .to("linkedin://" + PATH_PREFIX + "/getJob");
 
                 // test route for removeJob
                 from("direct://REMOVEJOB")
-                  .to("linkedin://" + PATH_PREFIX + "/removeJob?inBody=partner_job_id");
+                    .to("linkedin://" + PATH_PREFIX + "/removeJob?inBody=partner_job_id");
 
             }
         };

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/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 53567cf..d99fc06 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
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:11 PDT 2014
@@ -9,13 +25,14 @@ import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.linkedin.api.model.Person;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+import org.apache.camel.component.linkedin.internal.PeopleResourceApiMethod;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.PeopleResourceApiMethod;
 
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.PeopleResource} APIs.
@@ -500,135 +517,135 @@ public class PeopleResourceIntegrationTest extends AbstractLinkedInTestSupport
{
             public void configure() {
                 // test route for addActivity
                 from("direct://ADDACTIVITY")
-                  .to("linkedin://" + PATH_PREFIX + "/addActivity?inBody=activity");
+                    .to("linkedin://" + PATH_PREFIX + "/addActivity?inBody=activity");
 
                 // test route for addGroupMembership
                 from("direct://ADDGROUPMEMBERSHIP")
-                  .to("linkedin://" + PATH_PREFIX + "/addGroupMembership?inBody=groupmembership");
+                    .to("linkedin://" + PATH_PREFIX + "/addGroupMembership?inBody=groupmembership");
 
                 // test route for addInvite
                 from("direct://ADDINVITE")
-                  .to("linkedin://" + PATH_PREFIX + "/addInvite?inBody=mailboxitem");
+                    .to("linkedin://" + PATH_PREFIX + "/addInvite?inBody=mailboxitem");
 
                 // test route for addJobBookmark
                 from("direct://ADDJOBBOOKMARK")
-                  .to("linkedin://" + PATH_PREFIX + "/addJobBookmark?inBody=jobbookmark");
+                    .to("linkedin://" + PATH_PREFIX + "/addJobBookmark?inBody=jobbookmark");
 
                 // test route for addUpdateComment
                 from("direct://ADDUPDATECOMMENT")
-                  .to("linkedin://" + PATH_PREFIX + "/addUpdateComment");
+                    .to("linkedin://" + PATH_PREFIX + "/addUpdateComment");
 
                 // test route for followCompany
                 from("direct://FOLLOWCOMPANY")
-                  .to("linkedin://" + PATH_PREFIX + "/followCompany?inBody=company");
+                    .to("linkedin://" + PATH_PREFIX + "/followCompany?inBody=company");
 
                 // test route for getConnections
                 from("direct://GETCONNECTIONS")
-                  .to("linkedin://" + PATH_PREFIX + "/getConnections");
+                    .to("linkedin://" + PATH_PREFIX + "/getConnections");
 
                 // test route for getConnectionsById
                 from("direct://GETCONNECTIONSBYID")
-                  .to("linkedin://" + PATH_PREFIX + "/getConnectionsById");
+                    .to("linkedin://" + PATH_PREFIX + "/getConnectionsById");
 
                 // test route for getConnectionsByUrl
                 from("direct://GETCONNECTIONSBYURL")
-                  .to("linkedin://" + PATH_PREFIX + "/getConnectionsByUrl");
+                    .to("linkedin://" + PATH_PREFIX + "/getConnectionsByUrl");
 
                 // test route for getFollowedCompanies
                 from("direct://GETFOLLOWEDCOMPANIES")
-                  .to("linkedin://" + PATH_PREFIX + "/getFollowedCompanies?inBody=fields");
+                    .to("linkedin://" + PATH_PREFIX + "/getFollowedCompanies?inBody=fields");
 
                 // test route for getGroupMembershipSettings
                 from("direct://GETGROUPMEMBERSHIPSETTINGS")
-                  .to("linkedin://" + PATH_PREFIX + "/getGroupMembershipSettings");
+                    .to("linkedin://" + PATH_PREFIX + "/getGroupMembershipSettings");
 
                 // test route for getGroupMemberships
                 from("direct://GETGROUPMEMBERSHIPS")
-                  .to("linkedin://" + PATH_PREFIX + "/getGroupMemberships");
+                    .to("linkedin://" + PATH_PREFIX + "/getGroupMemberships");
 
                 // test route for getJobBookmarks
                 from("direct://GETJOBBOOKMARKS")
-                  .to("linkedin://" + PATH_PREFIX + "/getJobBookmarks");
+                    .to("linkedin://" + PATH_PREFIX + "/getJobBookmarks");
 
                 // test route for getNetworkStats
                 from("direct://GETNETWORKSTATS")
-                  .to("linkedin://" + PATH_PREFIX + "/getNetworkStats");
+                    .to("linkedin://" + PATH_PREFIX + "/getNetworkStats");
 
                 // test route for getNetworkUpdates
                 from("direct://GETNETWORKUPDATES")
-                  .to("linkedin://" + PATH_PREFIX + "/getNetworkUpdates");
+                    .to("linkedin://" + PATH_PREFIX + "/getNetworkUpdates");
 
                 // test route for getNetworkUpdatesById
                 from("direct://GETNETWORKUPDATESBYID")
-                  .to("linkedin://" + PATH_PREFIX + "/getNetworkUpdatesById");
+                    .to("linkedin://" + PATH_PREFIX + "/getNetworkUpdatesById");
 
                 // test route for getPerson
                 from("direct://GETPERSON")
-                  .to("linkedin://" + PATH_PREFIX + "/getPerson");
+                    .to("linkedin://" + PATH_PREFIX + "/getPerson");
 
                 // test route for getPersonById
                 from("direct://GETPERSONBYID")
-                  .to("linkedin://" + PATH_PREFIX + "/getPersonById");
+                    .to("linkedin://" + PATH_PREFIX + "/getPersonById");
 
                 // test route for getPersonByUrl
                 from("direct://GETPERSONBYURL")
-                  .to("linkedin://" + PATH_PREFIX + "/getPersonByUrl");
+                    .to("linkedin://" + PATH_PREFIX + "/getPersonByUrl");
 
                 // test route for getPosts
                 from("direct://GETPOSTS")
-                  .to("linkedin://" + PATH_PREFIX + "/getPosts");
+                    .to("linkedin://" + PATH_PREFIX + "/getPosts");
 
                 // test route for getSuggestedCompanies
                 from("direct://GETSUGGESTEDCOMPANIES")
-                  .to("linkedin://" + PATH_PREFIX + "/getSuggestedCompanies?inBody=fields");
+                    .to("linkedin://" + PATH_PREFIX + "/getSuggestedCompanies?inBody=fields");
 
                 // test route for getSuggestedGroupPosts
                 from("direct://GETSUGGESTEDGROUPPOSTS")
-                  .to("linkedin://" + PATH_PREFIX + "/getSuggestedGroupPosts");
+                    .to("linkedin://" + PATH_PREFIX + "/getSuggestedGroupPosts");
 
                 // test route for getSuggestedGroups
                 from("direct://GETSUGGESTEDGROUPS")
-                  .to("linkedin://" + PATH_PREFIX + "/getSuggestedGroups?inBody=fields");
+                    .to("linkedin://" + PATH_PREFIX + "/getSuggestedGroups?inBody=fields");
 
                 // test route for getSuggestedJobs
                 from("direct://GETSUGGESTEDJOBS")
-                  .to("linkedin://" + PATH_PREFIX + "/getSuggestedJobs?inBody=fields");
+                    .to("linkedin://" + PATH_PREFIX + "/getSuggestedJobs?inBody=fields");
 
                 // test route for getUpdateComments
                 from("direct://GETUPDATECOMMENTS")
-                  .to("linkedin://" + PATH_PREFIX + "/getUpdateComments");
+                    .to("linkedin://" + PATH_PREFIX + "/getUpdateComments");
 
                 // test route for getUpdateLikes
                 from("direct://GETUPDATELIKES")
-                  .to("linkedin://" + PATH_PREFIX + "/getUpdateLikes");
+                    .to("linkedin://" + PATH_PREFIX + "/getUpdateLikes");
 
                 // test route for likeUpdate
                 from("direct://LIKEUPDATE")
-                  .to("linkedin://" + PATH_PREFIX + "/likeUpdate");
+                    .to("linkedin://" + PATH_PREFIX + "/likeUpdate");
 
                 // test route for removeGroupMembership
                 from("direct://REMOVEGROUPMEMBERSHIP")
-                  .to("linkedin://" + PATH_PREFIX + "/removeGroupMembership?inBody=group_id");
+                    .to("linkedin://" + PATH_PREFIX + "/removeGroupMembership?inBody=group_id");
 
                 // test route for removeGroupSuggestion
                 from("direct://REMOVEGROUPSUGGESTION")
-                  .to("linkedin://" + PATH_PREFIX + "/removeGroupSuggestion?inBody=group_id");
+                    .to("linkedin://" + PATH_PREFIX + "/removeGroupSuggestion?inBody=group_id");
 
                 // test route for removeJobBookmark
                 from("direct://REMOVEJOBBOOKMARK")
-                  .to("linkedin://" + PATH_PREFIX + "/removeJobBookmark?inBody=job_id");
+                    .to("linkedin://" + PATH_PREFIX + "/removeJobBookmark?inBody=job_id");
 
                 // test route for share
                 from("direct://SHARE")
-                  .to("linkedin://" + PATH_PREFIX + "/share?inBody=share");
+                    .to("linkedin://" + PATH_PREFIX + "/share?inBody=share");
 
                 // test route for stopFollowingCompany
                 from("direct://STOPFOLLOWINGCOMPANY")
-                  .to("linkedin://" + PATH_PREFIX + "/stopFollowingCompany?inBody=company_id");
+                    .to("linkedin://" + PATH_PREFIX + "/stopFollowingCompany?inBody=company_id");
 
                 // test route for updateGroupMembership
                 from("direct://UPDATEGROUPMEMBERSHIP")
-                  .to("linkedin://" + PATH_PREFIX + "/updateGroupMembership");
+                    .to("linkedin://" + PATH_PREFIX + "/updateGroupMembership");
 
             }
         };

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java
index 5f79673..04ade42 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/PostsResourceIntegrationTest.java
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:11 PDT 2014
@@ -8,13 +24,13 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+import org.apache.camel.component.linkedin.internal.PostsResourceApiMethod;
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.PostsResourceApiMethod;
 
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.PostsResource} APIs.
@@ -130,31 +146,31 @@ public class PostsResourceIntegrationTest extends AbstractLinkedInTestSupport
{
             public void configure() {
                 // test route for addComment
                 from("direct://ADDCOMMENT")
-                  .to("linkedin://" + PATH_PREFIX + "/addComment");
+                    .to("linkedin://" + PATH_PREFIX + "/addComment");
 
                 // test route for flagCategory
                 from("direct://FLAGCATEGORY")
-                  .to("linkedin://" + PATH_PREFIX + "/flagCategory");
+                    .to("linkedin://" + PATH_PREFIX + "/flagCategory");
 
                 // test route for followPost
                 from("direct://FOLLOWPOST")
-                  .to("linkedin://" + PATH_PREFIX + "/followPost");
+                    .to("linkedin://" + PATH_PREFIX + "/followPost");
 
                 // test route for getPost
                 from("direct://GETPOST")
-                  .to("linkedin://" + PATH_PREFIX + "/getPost");
+                    .to("linkedin://" + PATH_PREFIX + "/getPost");
 
                 // test route for getPostComments
                 from("direct://GETPOSTCOMMENTS")
-                  .to("linkedin://" + PATH_PREFIX + "/getPostComments");
+                    .to("linkedin://" + PATH_PREFIX + "/getPostComments");
 
                 // test route for likePost
                 from("direct://LIKEPOST")
-                  .to("linkedin://" + PATH_PREFIX + "/likePost");
+                    .to("linkedin://" + PATH_PREFIX + "/likePost");
 
                 // test route for removePost
                 from("direct://REMOVEPOST")
-                  .to("linkedin://" + PATH_PREFIX + "/removePost?inBody=post_id");
+                    .to("linkedin://" + PATH_PREFIX + "/removePost?inBody=post_id");
 
             }
         };

http://git-wip-us.apache.org/repos/asf/camel/blob/b144cffb/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java
b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java
index d3c9e5f..806595b 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/SearchResourceIntegrationTest.java
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 /*
  * Camel Api Route test generated by camel-component-util-maven-plugin
  * Generated on: Wed Jul 09 19:57:11 PDT 2014
@@ -8,13 +24,14 @@ import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
+import org.apache.camel.component.linkedin.internal.SearchResourceApiMethod;
+
 import org.junit.Ignore;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import org.apache.camel.component.linkedin.internal.LinkedInApiCollection;
-import org.apache.camel.component.linkedin.internal.SearchResourceApiMethod;
 
 /**
  * Test class for {@link org.apache.camel.component.linkedin.api.SearchResource} APIs.
@@ -145,15 +162,15 @@ public class SearchResourceIntegrationTest extends AbstractLinkedInTestSupport
{
             public void configure() {
                 // test route for searchCompanies
                 from("direct://SEARCHCOMPANIES")
-                  .to("linkedin://" + PATH_PREFIX + "/searchCompanies");
+                    .to("linkedin://" + PATH_PREFIX + "/searchCompanies");
 
                 // test route for searchJobs
                 from("direct://SEARCHJOBS")
-                  .to("linkedin://" + PATH_PREFIX + "/searchJobs");
+                    .to("linkedin://" + PATH_PREFIX + "/searchJobs");
 
                 // test route for searchPeople
                 from("direct://SEARCHPEOPLE")
-                  .to("linkedin://" + PATH_PREFIX + "/searchPeople");
+                    .to("linkedin://" + PATH_PREFIX + "/searchPeople");
 
             }
         };


Mime
View raw message