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 2f68d8e0b1a2696b1179576bc5904662007d7b3e
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Mar 8 13:50:23 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-azure-storage-blob
---
 .../camel/component/azure/storage/blob/BlobComponentTest.java      | 6 +++---
 .../azure/storage/blob/integration/BlobChangeFeedOperationsIT.java | 4 ++--
 .../azure/storage/blob/integration/BlobCopyProducerIt.java         | 6 +++---
 .../component/azure/storage/blob/integration/BlobProducerIT.java   | 7 +++----
 4 files changed, 11 insertions(+), 12 deletions(-)

diff --git 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
index 48c3f4c..4213278 100644
--- 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
+++ 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
@@ -54,7 +54,7 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    void testCreateEndpointWithMinConfigForCredsOnly() throws Exception {
+    void testCreateEndpointWithMinConfigForCredsOnly() {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         final BlobEndpoint endpoint = (BlobEndpoint) context
@@ -110,7 +110,7 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    void testNoBlobNameProducerWithOpThatNeedsBlobName() throws Exception {
+    void testNoBlobNameProducerWithOpThatNeedsBlobName() {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         BlobEndpoint endpointWithOp = (BlobEndpoint) context.getEndpoint(
@@ -123,7 +123,7 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    void testHierarchicalBlobName() throws Exception {
+    void testHierarchicalBlobName() {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         BlobEndpoint endpoint = (BlobEndpoint) context
diff --git 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobChangeFeedOperationsIT.java
 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobChangeFeedOperationsIT.java
index fa9bd42..22b7a5e 100644
--- 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobChangeFeedOperationsIT.java
+++ 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobChangeFeedOperationsIT.java
@@ -91,10 +91,10 @@ class BlobChangeFeedOperationsIT extends Base {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:getChangeFeed")
                         
.to("azure-storage-blob://cameldev?operation=getChangeFeed")
                         .to(resultName);
diff --git 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobCopyProducerIt.java
 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobCopyProducerIt.java
index ceccbc9..2c454ed 100644
--- 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobCopyProducerIt.java
+++ 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobCopyProducerIt.java
@@ -31,7 +31,7 @@ class BlobCopyProducerIt extends CamelTestSupport {
     private ProducerTemplate template;
 
     @Test
-    void testCopyBlob() throws InterruptedException {
+    void testCopyBlob() {
 
         template.send("direct:uploadBlockBlob", exchange -> {
             exchange.getIn().setHeader(BlobConstants.BLOB_NAME, "pmi.txt");
@@ -42,10 +42,10 @@ class BlobCopyProducerIt 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:copyBlob")
                         
.to("azure-storage-blob://testblob214/test215?operation=copyBlob&sourceBlobAccessKey=RAW(sourceAccessKey)&accessKey=(accessKey)");
             }
diff --git 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
index 8ac562f..8f797de 100644
--- 
a/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
+++ 
b/components/camel-azure/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/integration/BlobProducerIT.java
@@ -17,7 +17,6 @@
 package org.apache.camel.component.azure.storage.blob.integration;
 
 import java.io.ByteArrayInputStream;
-import java.io.IOException;
 import java.io.InputStream;
 import java.nio.charset.StandardCharsets;
 import java.security.SecureRandom;
@@ -71,7 +70,7 @@ class BlobProducerIT extends Base {
     }
 
     @Test
-    void testCommitAndStageBlockBlob() throws InterruptedException, 
IOException {
+    void testCommitAndStageBlockBlob() throws InterruptedException {
         final String blobName = RandomStringUtils.randomAlphabetic(10);
 
         result.expectedMessageCount(1);
@@ -193,10 +192,10 @@ class BlobProducerIT extends Base {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:uploadBlockBlob")
                         .to(componentUri("uploadBlockBlob"))
                         .to(resultName);

Reply via email to