You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/04/13 13:35:01 UTC

[camel] 05/08: CAMEL-17763: cleanup unused exceptions in camel-hbase

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

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

commit da18b22845d3d3949cb31c4542f0290bc597fdd7
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 11 14:29:22 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-hbase
---
 .../apache/camel/component/hbase/CamelHBaseFilterIT.java   |  2 +-
 .../org/apache/camel/component/hbase/HBaseConsumerIT.java  |  2 +-
 .../apache/camel/component/hbase/HBaseConvertionsIT.java   |  2 +-
 .../org/apache/camel/component/hbase/HBaseProducerIT.java  |  4 ++--
 .../processor/idempotent/HBaseIdempotentRepositoryIT.java  | 14 +++++++-------
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/CamelHBaseFilterIT.java b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/CamelHBaseFilterIT.java
index 0957a39cd57..273239ccf4e 100644
--- a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/CamelHBaseFilterIT.java
+++ b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/CamelHBaseFilterIT.java
@@ -64,7 +64,7 @@ public class CamelHBaseFilterIT extends CamelHBaseTestSupport {
      * the routes for testing
      */
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
             public void configure() {
diff --git a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConsumerIT.java b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConsumerIT.java
index 94e7b3dcb07..d6308ea58a2 100644
--- a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConsumerIT.java
+++ b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConsumerIT.java
@@ -49,7 +49,7 @@ public class HBaseConsumerIT extends CamelHBaseTestSupport {
      * the routes for testing
      */
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
             public void configure() {
diff --git a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConvertionsIT.java b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConvertionsIT.java
index 1c864ab53a2..5fc6bdfbb03 100644
--- a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConvertionsIT.java
+++ b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseConvertionsIT.java
@@ -94,7 +94,7 @@ public class HBaseConvertionsIT extends CamelHBaseTestSupport {
      * the routes for testing
      */
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
             public void configure() {
diff --git a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseProducerIT.java b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseProducerIT.java
index c1f32b32437..e4aa69c5c9d 100644
--- a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseProducerIT.java
+++ b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/HBaseProducerIT.java
@@ -78,7 +78,7 @@ public class HBaseProducerIT extends CamelHBaseTestSupport {
     }
 
     @Test
-    public void testPutAndGetWithModel() throws Exception {
+    public void testPutAndGetWithModel() {
         Map<String, Object> headers = new HashMap<>();
         headers.put(HBaseConstants.OPERATION, HBaseConstants.PUT);
         int index = 1;
@@ -310,7 +310,7 @@ public class HBaseProducerIT extends CamelHBaseTestSupport {
      * the routes for testing
      */
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
             public void configure() {
diff --git a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/processor/idempotent/HBaseIdempotentRepositoryIT.java b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/processor/idempotent/HBaseIdempotentRepositoryIT.java
index 810a6992817..189f8db8bea 100644
--- a/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/processor/idempotent/HBaseIdempotentRepositoryIT.java
+++ b/components/camel-hbase/src/test/java/org/apache/camel/component/hbase/processor/idempotent/HBaseIdempotentRepositoryIT.java
@@ -55,7 +55,7 @@ public class HBaseIdempotentRepositoryIT extends CamelHBaseTestSupport {
     }
 
     @Test
-    public void testAdd() throws Exception {
+    public void testAdd() {
         // add first key
         assertTrue(repository.add(key01));
         assertTrue(repository.contains(key01));
@@ -69,7 +69,7 @@ public class HBaseIdempotentRepositoryIT extends CamelHBaseTestSupport {
     }
 
     @Test
-    public void testContains() throws Exception {
+    public void testContains() {
         assertFalse(repository.contains(key01));
 
         // add key and check again
@@ -78,7 +78,7 @@ public class HBaseIdempotentRepositoryIT extends CamelHBaseTestSupport {
     }
 
     @Test
-    public void testRemove() throws Exception {
+    public void testRemove() {
         // add key to remove
         assertTrue(repository.add(key01));
         assertTrue(repository.contains(key01));
@@ -93,7 +93,7 @@ public class HBaseIdempotentRepositoryIT extends CamelHBaseTestSupport {
     }
 
     @Test
-    public void testClear() throws Exception {
+    public void testClear() {
         // add key to remove
         assertTrue(repository.add(key01));
         assertTrue(repository.add(key02));
@@ -108,7 +108,7 @@ public class HBaseIdempotentRepositoryIT extends CamelHBaseTestSupport {
     }
 
     @Test
-    public void testConfirm() throws Exception {
+    public void testConfirm() {
         // it always return true
         assertTrue(repository.confirm(key01));
     }
@@ -128,10 +128,10 @@ public class HBaseIdempotentRepositoryIT extends CamelHBaseTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:in")
                         .idempotentConsumer(header("messageId"), repository)
                         .to("mock:out");