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 12:07:00 UTC

[camel] 03/10: CAMEL-17763: cleaned up unused exceptions in camel-stitch

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 11d02f9f699b3e797d0aa1be402ee7a97511b950
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Apr 13 11:06:19 2022 +0200

    CAMEL-17763: cleaned up unused exceptions in camel-stitch
---
 .../org/apache/camel/component/stitch/StitchProducerTest.java    | 9 ++++-----
 .../camel/component/stitch/integration/StitchProducerIT.java     | 4 ++--
 .../stitch/operations/StitchProducerOperationsTest.java          | 5 ++---
 3 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/StitchProducerTest.java b/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/StitchProducerTest.java
index 8f45f2818a0..1c8570b1e14 100644
--- a/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/StitchProducerTest.java
+++ b/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/StitchProducerTest.java
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.component.stitch;
 
-import java.io.IOException;
 import java.util.Collections;
 import java.util.LinkedHashMap;
 import java.util.LinkedList;
@@ -173,10 +172,10 @@ class StitchProducerTest extends CamelTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:sendStitch")
                         .to("stitch:table_1?stitchClient=#client&token=dummy")
                         .to(result);
@@ -202,7 +201,7 @@ class StitchProducerTest extends CamelTestSupport {
         }
 
         @Override
-        public void close() throws IOException {
+        public void close() {
             // noop
         }
     }
@@ -223,7 +222,7 @@ class StitchProducerTest extends CamelTestSupport {
         }
 
         @Override
-        public void close() throws IOException {
+        public void close() {
             // noop
         }
     }
diff --git a/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/integration/StitchProducerIT.java b/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/integration/StitchProducerIT.java
index 1221b2f74e6..50d540e09b5 100644
--- a/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/integration/StitchProducerIT.java
+++ b/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/integration/StitchProducerIT.java
@@ -161,10 +161,10 @@ class StitchProducerIT extends CamelTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:sendStitch")
                         .to("stitch:table_1?token=RAW({{token}})")
                         .to(result);
diff --git a/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/operations/StitchProducerOperationsTest.java b/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/operations/StitchProducerOperationsTest.java
index 49d43c40136..a3dc7d7af8e 100644
--- a/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/operations/StitchProducerOperationsTest.java
+++ b/components/camel-stitch/src/test/java/org/apache/camel/component/stitch/operations/StitchProducerOperationsTest.java
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.component.stitch.operations;
 
-import java.io.IOException;
 import java.util.Collections;
 import java.util.LinkedHashMap;
 import java.util.LinkedList;
@@ -294,7 +293,7 @@ class StitchProducerOperationsTest extends CamelTestSupport {
         }
 
         @Override
-        public void close() throws IOException {
+        public void close() {
             // noop
         }
     }
@@ -315,7 +314,7 @@ class StitchProducerOperationsTest extends CamelTestSupport {
         }
 
         @Override
-        public void close() throws IOException {
+        public void close() {
             // noop
         }
     }