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

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


The following commit(s) were added to refs/heads/main by this push:
     new 98b0a06  CAMEL-17763: cleaned up unused exceptions in camel-atmos 
(#7193)
98b0a06 is described below

commit 98b0a06b138600edaa06a6630809b49248f51339
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Sun Mar 13 14:29:47 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-atmos (#7193)
---
 .../java/org/apache/camel/component/atmos/AtmosConsumerTest.java    | 4 ++--
 .../atmos/integration/consumer/AtmosConsumerGetSingleTest.java      | 4 ++--
 .../component/atmos/integration/producer/AtmosProducerDelTest.java  | 6 +++---
 .../atmos/integration/producer/AtmosProducerGetFolderTest.java      | 6 +++---
 .../atmos/integration/producer/AtmosProducerGetSingleTest.java      | 6 +++---
 .../component/atmos/integration/producer/AtmosProducerMoveTest.java | 6 +++---
 .../producer/AtmosProducerPutFolderWithRemotePathTest.java          | 6 +++---
 .../atmos/integration/producer/AtmosProducerPutSingleFileTest.java  | 6 +++---
 .../producer/AtmosProducerPutSingleFileWithRemotePathTest.java      | 6 +++---
 9 files changed, 25 insertions(+), 25 deletions(-)

diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/AtmosConsumerTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/AtmosConsumerTest.java
index 55027bc..03e706b 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/AtmosConsumerTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/AtmosConsumerTest.java
@@ -33,10 +33,10 @@ public class AtmosConsumerTest extends CamelTestSupport {
     private String fake = 
Base64.getEncoder().encodeToString("fakeSecret".getBytes());
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 
fromF("atmos:foo/get?remotePath=/path&fullTokenId=fakeToken&secretKey=%s&uri=https://fake/uri";,
 fake)
                         .to("mock:test");
             }
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/consumer/AtmosConsumerGetSingleTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/consumer/AtmosConsumerGetSingleTest.java
index d86de99..5ad2c1c 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/consumer/AtmosConsumerGetSingleTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/consumer/AtmosConsumerGetSingleTest.java
@@ -30,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosConsumerGetSingleTest extends AtmosTestSupport {
 
-    public AtmosConsumerGetSingleTest() throws Exception {
+    public AtmosConsumerGetSingleTest() {
     }
 
     @Test
@@ -49,7 +49,7 @@ public class AtmosConsumerGetSingleTest extends 
AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("atmos://get?remotePath=/dummy.txt&localPath=/home")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerDelTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerDelTest.java
index e1fbebd..a026e51 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerDelTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerDelTest.java
@@ -30,14 +30,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosProducerDelTest extends AtmosTestSupport {
 
-    public AtmosProducerDelTest() throws Exception {
+    public AtmosProducerDelTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -55,7 +55,7 @@ public class AtmosProducerDelTest extends AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetFolderTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetFolderTest.java
index afa356a..598e85b 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetFolderTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetFolderTest.java
@@ -34,14 +34,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 public class AtmosProducerGetFolderTest extends AtmosTestSupport {
     private static final Logger LOG = 
LoggerFactory.getLogger(AtmosProducerGetFolderTest.class);
 
-    public AtmosProducerGetFolderTest() throws Exception {
+    public AtmosProducerGetFolderTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -61,7 +61,7 @@ public class AtmosProducerGetFolderTest extends 
AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetSingleTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetSingleTest.java
index 062cd44..c1196de 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetSingleTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerGetSingleTest.java
@@ -31,14 +31,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosProducerGetSingleTest extends AtmosTestSupport {
 
-    public AtmosProducerGetSingleTest() throws Exception {
+    public AtmosProducerGetSingleTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -56,7 +56,7 @@ public class AtmosProducerGetSingleTest extends 
AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerMoveTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerMoveTest.java
index 931cce0..34e546c 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerMoveTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerMoveTest.java
@@ -31,14 +31,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosProducerMoveTest extends AtmosTestSupport {
 
-    public AtmosProducerMoveTest() throws Exception {
+    public AtmosProducerMoveTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -56,7 +56,7 @@ public class AtmosProducerMoveTest extends AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutFolderWithRemotePathTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutFolderWithRemotePathTest.java
index 4ee602d..5a996de 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutFolderWithRemotePathTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutFolderWithRemotePathTest.java
@@ -30,14 +30,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosProducerPutFolderWithRemotePathTest extends AtmosTestSupport 
{
 
-    public AtmosProducerPutFolderWithRemotePathTest() throws Exception {
+    public AtmosProducerPutFolderWithRemotePathTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -55,7 +55,7 @@ public class AtmosProducerPutFolderWithRemotePathTest extends 
AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileTest.java
index 4e84d1b..f367c1c 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileTest.java
@@ -31,14 +31,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosProducerPutSingleFileTest extends AtmosTestSupport {
 
-    public AtmosProducerPutSingleFileTest() throws Exception {
+    public AtmosProducerPutSingleFileTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -56,7 +56,7 @@ public class AtmosProducerPutSingleFileTest extends 
AtmosTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")
diff --git 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileWithRemotePathTest.java
 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileWithRemotePathTest.java
index 743aa63..074d6da 100644
--- 
a/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileWithRemotePathTest.java
+++ 
b/components/camel-atmos/src/test/java/org/apache/camel/component/atmos/integration/producer/AtmosProducerPutSingleFileWithRemotePathTest.java
@@ -31,14 +31,14 @@ import static 
org.junit.jupiter.api.Assertions.assertNotNull;
 
 public class AtmosProducerPutSingleFileWithRemotePathTest extends 
AtmosTestSupport {
 
-    public AtmosProducerPutSingleFileWithRemotePathTest() throws Exception {
+    public AtmosProducerPutSingleFileWithRemotePathTest() {
     }
 
     @Test
     public void testCamelAtmos() throws Exception {
         template.send("direct:start", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setHeader("test", "test");
             }
         });
@@ -56,7 +56,7 @@ public class AtmosProducerPutSingleFileWithRemotePathTest 
extends AtmosTestSuppo
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct:start")

Reply via email to