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:48 UTC
[camel] 02/04: Camel-Soroush: Polished
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 {