You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/05/16 07:36:46 UTC

[camel] branch master updated (1ee4559 -> 4bb7e36)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 1ee4559  CAMEL-13531: Simple language - Add env as function to lookup system env variable
     new 88e7845  Camel-Soroush: Remove usage of deprecated stuff
     new 142e518  Camel-Soroush: Polished
     new 13d5602  Camel-Soroush: More polishing
     new 4bb7e36  Camel-Soroush: Fixed CS

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../soroushbot/component/SoroushBotAbstractConsumer.java          | 2 --
 .../camel/component/soroushbot/component/SoroushBotComponent.java | 1 -
 .../soroushbot/component/SoroushBotDownloadFileProducer.java      | 1 -
 .../camel/component/soroushbot/component/SoroushBotEndpoint.java  | 2 --
 .../soroushbot/component/SoroushBotMultiThreadConsumer.java       | 1 -
 .../soroushbot/component/SoroushBotSendMessageProducer.java       | 1 -
 .../soroushbot/component/SoroushBotSingleThreadConsumer.java      | 1 -
 .../soroushbot/component/SoroushBotUploadFileProducer.java        | 1 -
 .../org/apache/camel/component/soroushbot/models/CustomKey.java   | 2 --
 .../org/apache/camel/component/soroushbot/models/Endpoint.java    | 1 -
 .../org/apache/camel/component/soroushbot/models/FileType.java    | 1 -
 .../org/apache/camel/component/soroushbot/models/MinorType.java   | 1 -
 .../apache/camel/component/soroushbot/models/SoroushMessage.java  | 1 -
 .../component/soroushbot/models/response/SendMessageResponse.java | 1 -
 .../component/soroushbot/models/response/SoroushResponse.java     | 1 -
 .../component/soroushbot/models/response/UploadFileResponse.java  | 1 -
 .../apache/camel/component/soroushbot/service/SoroushService.java | 1 -
 .../apache/camel/component/soroushbot/utils/BackOffStrategy.java  | 1 -
 .../camel/component/soroushbot/utils/CongestionException.java     | 1 -
 .../component/soroushbot/utils/ExponentialBackOffStrategy.java    | 1 -
 .../camel/component/soroushbot/utils/FixedBackOffStrategy.java    | 1 -
 .../camel/component/soroushbot/utils/LinearBackOffStrategy.java   | 1 -
 .../soroushbot/utils/MaximumConnectionRetryReachedException.java  | 1 -
 .../component/soroushbot/utils/MultiQueueWithTopicThreadPool.java | 1 -
 .../apache/camel/component/soroushbot/utils/SoroushException.java | 1 -
 .../org/apache/camel/component/soroushbot/utils/StringUtils.java  | 1 -
 .../test/java/org/apache/camel/component/soroushbot/IOUtils.java  | 1 -
 .../component/ConsumerAutoReconnectAfterIdleTimeoutTest.java      | 8 --------
 .../soroushbot/component/ConsumerCamelConcurrentTest.java         | 1 -
 .../component/ConsumerExceptionHandledWithErrorHandler.java       | 1 -
 .../camel/component/soroushbot/component/ConsumerMultiThread.java | 1 -
 .../soroushbot/component/ConsumerNativeConcurrentTest.java        | 1 -
 .../soroushbot/component/ConsumerQueueCapacityPerThread.java      | 1 -
 .../soroushbot/component/ConsumerRetryOnConnectionFailure.java    | 1 -
 .../apache/camel/component/soroushbot/component/ConsumerTest.java | 1 -
 .../component/ExponentialBackOffProducerConnectionRetryTest.java  | 6 ++----
 .../component/FixedBackOffProducerConnectionRetryTest.java        | 4 ++--
 .../soroushbot/component/HandleExceptionWithErrorHandler.java     | 1 -
 .../component/LinearBackOffProducerConnectionRetryTest.java       | 4 ++--
 .../component/MaxRetryWaitingTimeProducerConnectionRetryTest.java | 6 ++----
 .../component/soroushbot/component/ProducerAutoUploadFile.java    | 3 +--
 .../soroushbot/component/ProducerAutoUploadFileIsFalse.java       | 3 +--
 .../soroushbot/component/ProducerConnectionRetryTest.java         | 4 ++--
 .../component/soroushbot/component/ProducerDownloadFile.java      | 3 +--
 .../component/ProducerDownloadFileWithoutThumbnail.java           | 3 +--
 .../component/ProducerMaxConnectionRetryReachedTest.java          | 4 ++--
 .../apache/camel/component/soroushbot/component/ProducerTest.java | 4 ++--
 .../camel/component/soroushbot/component/ProducerUploadFile.java  | 3 +--
 .../camel/component/soroushbot/service/SoroushServiceTest.java    | 1 -
 .../camel/component/soroushbot/support/SoroushBotApplication.java | 2 --
 .../apache/camel/component/soroushbot/support/SoroushBotWS.java   | 1 -
 .../camel/component/soroushbot/support/SoroushMockServer.java     | 2 --
 .../soroushbot/utils/MultiQueueWithTopicThreadPoolTest.java       | 2 --
 53 files changed, 19 insertions(+), 82 deletions(-)


[camel] 04/04: Camel-Soroush: Fixed CS

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4bb7e3698e0510385789ca46c3f7651402de3207
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 16 09:36:05 2019 +0200

    Camel-Soroush: Fixed CS
---
 .../component/ExponentialBackOffProducerConnectionRetryTest.java        | 2 +-
 .../soroushbot/component/FixedBackOffProducerConnectionRetryTest.java   | 2 +-
 .../soroushbot/component/LinearBackOffProducerConnectionRetryTest.java  | 2 +-
 .../component/soroushbot/component/ProducerConnectionRetryTest.java     | 2 +-
 .../soroushbot/component/ProducerMaxConnectionRetryReachedTest.java     | 2 +-
 .../org/apache/camel/component/soroushbot/component/ProducerTest.java   | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
index a135d4c..7c690bd 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
@@ -30,7 +30,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ExponentialBackOffProducerConnectionRetryTest extends SoroushBotTestSupport {
-	
+
     @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
index 8e0c72e..e6db62b 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
@@ -30,7 +30,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class FixedBackOffProducerConnectionRetryTest extends SoroushBotTestSupport {
-	
+
     @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
index eb06090..b698903 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
@@ -30,7 +30,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class LinearBackOffProducerConnectionRetryTest extends SoroushBotTestSupport {
-	
+
     @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
index e102afa..b82012c 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
@@ -30,7 +30,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ProducerConnectionRetryTest extends SoroushBotTestSupport {
-	
+
     @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
index e0de08a..b9b90dc 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
@@ -31,7 +31,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ProducerMaxConnectionRetryReachedTest extends SoroushBotTestSupport {
-	
+
     @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
index 2907272..7834b7f 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
@@ -30,7 +30,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ProducerTest extends SoroushBotTestSupport {
-	
+
     @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 


[camel] 03/04: Camel-Soroush: More polishing

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 13d5602b251ff724263c50badb308fa2ea62aa98
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 16 09:26:19 2019 +0200

    Camel-Soroush: More polishing
---
 .../java/org/apache/camel/component/soroushbot/support/SoroushBotWS.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotWS.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotWS.java
index 1034792..105bfcf 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotWS.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotWS.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.support;
 
 import java.io.IOException;


[camel] 01/04: Camel-Soroush: Remove usage of deprecated stuff

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 88e78455c2b41c9245d119a2a8fa18d1ca8b5341
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 16 09:19:18 2019 +0200

    Camel-Soroush: Remove usage of deprecated stuff
---
 .../component/ExponentialBackOffProducerConnectionRetryTest.java       | 3 ++-
 .../soroushbot/component/FixedBackOffProducerConnectionRetryTest.java  | 3 ++-
 .../soroushbot/component/LinearBackOffProducerConnectionRetryTest.java | 3 ++-
 .../component/MaxRetryWaitingTimeProducerConnectionRetryTest.java      | 3 ++-
 .../camel/component/soroushbot/component/ProducerAutoUploadFile.java   | 2 +-
 .../component/soroushbot/component/ProducerAutoUploadFileIsFalse.java  | 2 +-
 .../component/soroushbot/component/ProducerConnectionRetryTest.java    | 3 ++-
 .../camel/component/soroushbot/component/ProducerDownloadFile.java     | 2 +-
 .../soroushbot/component/ProducerDownloadFileWithoutThumbnail.java     | 2 +-
 .../soroushbot/component/ProducerMaxConnectionRetryReachedTest.java    | 3 ++-
 .../org/apache/camel/component/soroushbot/component/ProducerTest.java  | 3 ++-
 .../camel/component/soroushbot/component/ProducerUploadFile.java       | 2 +-
 12 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
index 5ff248e..d682e76 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
@@ -33,7 +33,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ExponentialBackOffProducerConnectionRetryTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+	
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
index 9ca1384..9871a42 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
@@ -31,7 +31,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class FixedBackOffProducerConnectionRetryTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+	
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
index 7c222f3..eadb4c5 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
@@ -31,7 +31,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class LinearBackOffProducerConnectionRetryTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+	
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java
index 7dcd953..d5813c3 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java
@@ -33,7 +33,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class MaxRetryWaitingTimeProducerConnectionRetryTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java
index 9793218..eafedd2 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java
@@ -35,7 +35,7 @@ import org.junit.Test;
 
 public class ProducerAutoUploadFile extends SoroushBotTestSupport {
 
-    @EndpointInject(uri = "direct:soroush")
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java
index 23cd800..cc37f99 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java
@@ -35,7 +35,7 @@ import org.junit.Test;
 
 public class ProducerAutoUploadFileIsFalse extends SoroushBotTestSupport {
 
-    @EndpointInject(uri = "direct:soroush")
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
index f3bfd50..274505a 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
@@ -31,7 +31,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ProducerConnectionRetryTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+	
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java
index d181f99..3acdeca 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java
@@ -37,7 +37,7 @@ import org.junit.Test;
 
 public class ProducerDownloadFile extends SoroushBotTestSupport {
 
-    @EndpointInject(uri = "direct:soroush")
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java
index 74c572d..8e5f269 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java
@@ -37,7 +37,7 @@ import org.junit.Test;
 
 public class ProducerDownloadFileWithoutThumbnail extends SoroushBotTestSupport {
 
-    @EndpointInject(uri = "direct:soroush")
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
 
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
index fe650d6..245efd6 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
@@ -32,7 +32,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ProducerMaxConnectionRetryReachedTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+	
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
index f0a0f77..552fb2e 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
@@ -31,7 +31,8 @@ import org.junit.Before;
 import org.junit.Test;
 
 public class ProducerTest extends SoroushBotTestSupport {
-    @EndpointInject(uri = "direct:soroush")
+	
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java
index a69e908..14a914e 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java
@@ -35,7 +35,7 @@ import org.junit.Test;
 
 public class ProducerUploadFile extends SoroushBotTestSupport {
 
-    @EndpointInject(uri = "direct:soroush")
+    @EndpointInject("direct:soroush")
     org.apache.camel.Endpoint endpoint;
 
     @Override


[camel] 02/04: Camel-Soroush: Polished

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 142e5182f7b603517d4b2cf6d172b8c83addbd5f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu May 16 09:24:33 2019 +0200

    Camel-Soroush: Polished
---
 .../soroushbot/component/SoroushBotAbstractConsumer.java          | 2 --
 .../camel/component/soroushbot/component/SoroushBotComponent.java | 1 -
 .../soroushbot/component/SoroushBotDownloadFileProducer.java      | 1 -
 .../camel/component/soroushbot/component/SoroushBotEndpoint.java  | 2 --
 .../soroushbot/component/SoroushBotMultiThreadConsumer.java       | 1 -
 .../soroushbot/component/SoroushBotSendMessageProducer.java       | 1 -
 .../soroushbot/component/SoroushBotSingleThreadConsumer.java      | 1 -
 .../soroushbot/component/SoroushBotUploadFileProducer.java        | 1 -
 .../org/apache/camel/component/soroushbot/models/CustomKey.java   | 2 --
 .../org/apache/camel/component/soroushbot/models/Endpoint.java    | 1 -
 .../org/apache/camel/component/soroushbot/models/FileType.java    | 1 -
 .../org/apache/camel/component/soroushbot/models/MinorType.java   | 1 -
 .../apache/camel/component/soroushbot/models/SoroushMessage.java  | 1 -
 .../component/soroushbot/models/response/SendMessageResponse.java | 1 -
 .../component/soroushbot/models/response/SoroushResponse.java     | 1 -
 .../component/soroushbot/models/response/UploadFileResponse.java  | 1 -
 .../apache/camel/component/soroushbot/service/SoroushService.java | 1 -
 .../apache/camel/component/soroushbot/utils/BackOffStrategy.java  | 1 -
 .../camel/component/soroushbot/utils/CongestionException.java     | 1 -
 .../component/soroushbot/utils/ExponentialBackOffStrategy.java    | 1 -
 .../camel/component/soroushbot/utils/FixedBackOffStrategy.java    | 1 -
 .../camel/component/soroushbot/utils/LinearBackOffStrategy.java   | 1 -
 .../soroushbot/utils/MaximumConnectionRetryReachedException.java  | 1 -
 .../component/soroushbot/utils/MultiQueueWithTopicThreadPool.java | 1 -
 .../apache/camel/component/soroushbot/utils/SoroushException.java | 1 -
 .../org/apache/camel/component/soroushbot/utils/StringUtils.java  | 1 -
 .../test/java/org/apache/camel/component/soroushbot/IOUtils.java  | 1 -
 .../component/ConsumerAutoReconnectAfterIdleTimeoutTest.java      | 8 --------
 .../soroushbot/component/ConsumerCamelConcurrentTest.java         | 1 -
 .../component/ConsumerExceptionHandledWithErrorHandler.java       | 1 -
 .../camel/component/soroushbot/component/ConsumerMultiThread.java | 1 -
 .../soroushbot/component/ConsumerNativeConcurrentTest.java        | 1 -
 .../soroushbot/component/ConsumerQueueCapacityPerThread.java      | 1 -
 .../soroushbot/component/ConsumerRetryOnConnectionFailure.java    | 1 -
 .../apache/camel/component/soroushbot/component/ConsumerTest.java | 1 -
 .../component/ExponentialBackOffProducerConnectionRetryTest.java  | 3 ---
 .../component/FixedBackOffProducerConnectionRetryTest.java        | 1 -
 .../soroushbot/component/HandleExceptionWithErrorHandler.java     | 1 -
 .../component/LinearBackOffProducerConnectionRetryTest.java       | 1 -
 .../component/MaxRetryWaitingTimeProducerConnectionRetryTest.java | 3 ---
 .../component/soroushbot/component/ProducerAutoUploadFile.java    | 1 -
 .../soroushbot/component/ProducerAutoUploadFileIsFalse.java       | 1 -
 .../soroushbot/component/ProducerConnectionRetryTest.java         | 1 -
 .../component/soroushbot/component/ProducerDownloadFile.java      | 1 -
 .../component/ProducerDownloadFileWithoutThumbnail.java           | 1 -
 .../component/ProducerMaxConnectionRetryReachedTest.java          | 1 -
 .../apache/camel/component/soroushbot/component/ProducerTest.java | 1 -
 .../camel/component/soroushbot/component/ProducerUploadFile.java  | 1 -
 .../camel/component/soroushbot/service/SoroushServiceTest.java    | 1 -
 .../camel/component/soroushbot/support/SoroushBotApplication.java | 2 --
 .../camel/component/soroushbot/support/SoroushMockServer.java     | 2 --
 .../soroushbot/utils/MultiQueueWithTopicThreadPoolTest.java       | 2 --
 52 files changed, 69 deletions(-)

diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotAbstractConsumer.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotAbstractConsumer.java
index 02bc7ea..e207336 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotAbstractConsumer.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotAbstractConsumer.java
@@ -14,11 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.IOException;
-import java.time.Duration;
 import java.util.concurrent.TimeUnit;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotComponent.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotComponent.java
index ed71b07..6959558 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotComponent.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotComponent.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.util.Map;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotDownloadFileProducer.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotDownloadFileProducer.java
index 2691d59..cc28fe7 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotDownloadFileProducer.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotDownloadFileProducer.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.Exchange;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
index 1783fca..7730381 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotEndpoint.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.IOException;
@@ -53,7 +52,6 @@ import org.glassfish.jersey.media.multipart.file.StreamDataBodyPart;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-
 /**
  * this class represents Soroush Endpoint, it is also a bean containing the configuration of the Endpoint
  */
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotMultiThreadConsumer.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotMultiThreadConsumer.java
index 4c44813..bc10555 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotMultiThreadConsumer.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotMultiThreadConsumer.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.Exchange;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSendMessageProducer.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSendMessageProducer.java
index 873af7e..fa425ff 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSendMessageProducer.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSendMessageProducer.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.IOException;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSingleThreadConsumer.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSingleThreadConsumer.java
index facd687..8641a35 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSingleThreadConsumer.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotSingleThreadConsumer.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.Exchange;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotUploadFileProducer.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotUploadFileProducer.java
index 37fbbda..67a48f5 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotUploadFileProducer.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/component/SoroushBotUploadFileProducer.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.Exchange;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/CustomKey.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/CustomKey.java
index 2cf2602..2091306 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/CustomKey.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/CustomKey.java
@@ -14,14 +14,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models;
 
 import java.util.Objects;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 
-
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class CustomKey {
 
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/Endpoint.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/Endpoint.java
index 4ff9dd9..2437e3d 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/Endpoint.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/Endpoint.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models;
 
 public enum Endpoint {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/FileType.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/FileType.java
index 13ff055..ff3612b 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/FileType.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/FileType.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models;
 
 public enum FileType {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/MinorType.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/MinorType.java
index 3499657..0a30187 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/MinorType.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/MinorType.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models;
 
 public enum MinorType {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/SoroushMessage.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/SoroushMessage.java
index d19cae1..e3e5867 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/SoroushMessage.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/SoroushMessage.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models;
 
 import java.io.BufferedInputStream;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SendMessageResponse.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SendMessageResponse.java
index aa1f788..335f69b 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SendMessageResponse.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SendMessageResponse.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models.response;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SoroushResponse.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SoroushResponse.java
index 5666103..d2663af 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SoroushResponse.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/SoroushResponse.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models.response;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/UploadFileResponse.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/UploadFileResponse.java
index e51c1da..601b860 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/UploadFileResponse.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/models/response/UploadFileResponse.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.models.response;
 
 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/service/SoroushService.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/service/SoroushService.java
index f633ce0..6bdab50 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/service/SoroushService.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/service/SoroushService.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.service;
 
 import java.io.IOException;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/BackOffStrategy.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/BackOffStrategy.java
index cc299b1..f531719 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/BackOffStrategy.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/BackOffStrategy.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 public interface BackOffStrategy {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/CongestionException.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/CongestionException.java
index ee42601..13cf5f2 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/CongestionException.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/CongestionException.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 import org.apache.camel.component.soroushbot.models.SoroushMessage;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/ExponentialBackOffStrategy.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/ExponentialBackOffStrategy.java
index 399b5b2..4ba899a 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/ExponentialBackOffStrategy.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/ExponentialBackOffStrategy.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 public class ExponentialBackOffStrategy implements BackOffStrategy {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/FixedBackOffStrategy.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/FixedBackOffStrategy.java
index 145b0a6..fe37f45 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/FixedBackOffStrategy.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/FixedBackOffStrategy.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 public class FixedBackOffStrategy implements BackOffStrategy {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/LinearBackOffStrategy.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/LinearBackOffStrategy.java
index e1229d2..6473809 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/LinearBackOffStrategy.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/LinearBackOffStrategy.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 public class LinearBackOffStrategy implements BackOffStrategy {
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MaximumConnectionRetryReachedException.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MaximumConnectionRetryReachedException.java
index f7b1857..481ccba 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MaximumConnectionRetryReachedException.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MaximumConnectionRetryReachedException.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 import org.apache.camel.component.soroushbot.models.SoroushMessage;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPool.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPool.java
index 47cb495..6bde062 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPool.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPool.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 import java.util.ArrayList;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/SoroushException.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/SoroushException.java
index f00137c..6b4a656 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/SoroushException.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/SoroushException.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 import org.apache.camel.component.soroushbot.models.SoroushMessage;
diff --git a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/StringUtils.java b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/StringUtils.java
index 211cfaf..f934011 100644
--- a/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/StringUtils.java
+++ b/components/camel-soroush/src/main/java/org/apache/camel/component/soroushbot/utils/StringUtils.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 public final class StringUtils {
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/IOUtils.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/IOUtils.java
index 374edf3..03df716 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/IOUtils.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/IOUtils.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot;
 
 import java.io.EOFException;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerAutoReconnectAfterIdleTimeoutTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerAutoReconnectAfterIdleTimeoutTest.java
index f59e6bc..3d32527 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerAutoReconnectAfterIdleTimeoutTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerAutoReconnectAfterIdleTimeoutTest.java
@@ -17,19 +17,11 @@
 
 package org.apache.camel.component.soroushbot.component;
 
-import java.util.HashSet;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.atomic.AtomicInteger;
-
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.component.soroushbot.models.Endpoint;
-import org.apache.camel.component.soroushbot.models.SoroushMessage;
 import org.apache.camel.component.soroushbot.support.SoroushBotTestSupport;
-import org.apache.camel.component.soroushbot.support.SoroushBotWS;
-import org.apache.logging.log4j.LogManager;
-import org.junit.Assert;
 import org.junit.Test;
 
 public class ConsumerAutoReconnectAfterIdleTimeoutTest extends SoroushBotTestSupport {
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerCamelConcurrentTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerCamelConcurrentTest.java
index ad59f3c..de40280 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerCamelConcurrentTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerCamelConcurrentTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.util.ArrayList;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerExceptionHandledWithErrorHandler.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerExceptionHandledWithErrorHandler.java
index cde1ac6..86e78c4 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerExceptionHandledWithErrorHandler.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerExceptionHandledWithErrorHandler.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.Exchange;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerMultiThread.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerMultiThread.java
index 47964bf..76e9c31 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerMultiThread.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerMultiThread.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.RoutesBuilder;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerNativeConcurrentTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerNativeConcurrentTest.java
index 9e8cdb6..a5e55ee 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerNativeConcurrentTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerNativeConcurrentTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.util.HashSet;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerQueueCapacityPerThread.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerQueueCapacityPerThread.java
index 28f72e1..f876b3c 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerQueueCapacityPerThread.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerQueueCapacityPerThread.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.RoutesBuilder;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerRetryOnConnectionFailure.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerRetryOnConnectionFailure.java
index b9a28e5..a2e746c 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerRetryOnConnectionFailure.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerRetryOnConnectionFailure.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.RoutesBuilder;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerTest.java
index 84687cd..665a0b8 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ConsumerTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.RoutesBuilder;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
index d682e76..a135d4c 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ExponentialBackOffProducerConnectionRetryTest.java
@@ -14,11 +14,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
-import java.util.Date;
-
 import org.apache.camel.EndpointInject;
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.builder.RouteBuilder;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
index 9871a42..8e0c72e 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/FixedBackOffProducerConnectionRetryTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.EndpointInject;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/HandleExceptionWithErrorHandler.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/HandleExceptionWithErrorHandler.java
index 2a85fb9..338aa7d 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/HandleExceptionWithErrorHandler.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/HandleExceptionWithErrorHandler.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.File;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
index eadb4c5..eb06090 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/LinearBackOffProducerConnectionRetryTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.EndpointInject;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java
index d5813c3..9a55d15 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/MaxRetryWaitingTimeProducerConnectionRetryTest.java
@@ -14,11 +14,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
-import java.util.Date;
-
 import org.apache.camel.EndpointInject;
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.builder.RouteBuilder;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java
index eafedd2..0ac2481 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFile.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.ByteArrayInputStream;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java
index cc37f99..70c28a5 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerAutoUploadFileIsFalse.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.ByteArrayInputStream;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
index 274505a..e102afa 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerConnectionRetryTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.EndpointInject;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java
index 3acdeca..ce63d61 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFile.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.ByteArrayInputStream;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java
index 8e5f269..23626f2 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerDownloadFileWithoutThumbnail.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.ByteArrayInputStream;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
index 245efd6..e0de08a 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerMaxConnectionRetryReachedTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.CamelExecutionException;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
index 552fb2e..2907272 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import org.apache.camel.EndpointInject;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java
index 14a914e..a458fff 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/component/ProducerUploadFile.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.component;
 
 import java.io.ByteArrayInputStream;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java
index 275f4b9..8bf0034 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.service;
 
 import java.io.ByteArrayInputStream;
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotApplication.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotApplication.java
index 9aa0dcd..b737fcf 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotApplication.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushBotApplication.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.support;
 
 import javax.ws.rs.ApplicationPath;
@@ -24,7 +23,6 @@ import org.glassfish.jersey.media.multipart.MultiPartFeature;
 import org.glassfish.jersey.media.sse.SseFeature;
 import org.glassfish.jersey.server.ResourceConfig;
 
-
 @ApplicationPath("/")
 public class SoroushBotApplication extends ResourceConfig {
     public SoroushBotApplication() {
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushMockServer.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushMockServer.java
index 37c334e..116f8f6 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushMockServer.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/support/SoroushMockServer.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.support;
 
 import org.eclipse.jetty.server.Server;
@@ -26,7 +25,6 @@ public class SoroushMockServer extends Thread {
     private Server jettyServer;
     private Integer port = 8080;
 
-
     public void start() {
         ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
         context.setContextPath("/");
diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPoolTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPoolTest.java
index cbad16d..7e773bc 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPoolTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/utils/MultiQueueWithTopicThreadPoolTest.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.component.soroushbot.utils;
 
 import java.util.concurrent.LinkedBlockingQueue;
@@ -22,7 +21,6 @@ import java.util.concurrent.LinkedBlockingQueue;
 import org.junit.Assert;
 import org.junit.Test;
 
-
 public class MultiQueueWithTopicThreadPoolTest {
     @Test
     public void singleThreadSuccessful() throws InterruptedException {