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/03/08 16:06:53 UTC

[camel] 01/06: CAMEL-17763: cleaned up unused exceptions in camel-azure-cosmosdb

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 85ec6ae1d4ca5fd562d40d1ea7f69d671d8845c0
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Mar 8 13:50:22 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-azure-cosmosdb
---
 .../component/azure/cosmosdb/integration/CosmosDbConsumerIT.java      | 4 ++--
 .../component/azure/cosmosdb/integration/CosmosDbProducerIT.java      | 4 ++--
 .../integration/operations/CosmosDbContainerOperationsIT.java         | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbConsumerIT.java b/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbConsumerIT.java
index 8c43080..9993c8c 100644
--- a/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbConsumerIT.java
+++ b/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbConsumerIT.java
@@ -120,10 +120,10 @@ class CosmosDbConsumerIT extends BaseCamelCosmosDbTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from(String.format(
                         "azure-cosmosdb://%s/%s?leaseDatabaseName=%s&createLeaseDatabaseIfNotExists=true&createLeaseContainerIfNotExists=true",
                         DATABASE_NAME, containerName, leaseDatabaseName))
diff --git a/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbProducerIT.java b/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbProducerIT.java
index 7842167..b8f2d0d 100644
--- a/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbProducerIT.java
+++ b/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/CosmosDbProducerIT.java
@@ -430,10 +430,10 @@ public class CosmosDbProducerIT extends BaseCamelCosmosDbTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:listDatabases").to("azure-cosmosdb://?operation=listDatabases").to(resultName);
                 from("direct:createDatabase").to("azure-cosmosdb://?operation=createDatabase").to(resultName);
                 from("direct:deleteDatabase").to("azure-cosmosdb://?operation=deleteDatabase").to(resultName);
diff --git a/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/operations/CosmosDbContainerOperationsIT.java b/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/operations/CosmosDbContainerOperationsIT.java
index f360513..31e697f 100644
--- a/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/operations/CosmosDbContainerOperationsIT.java
+++ b/components/camel-azure/camel-azure-cosmosdb/src/test/java/org/apache/camel/component/azure/cosmosdb/integration/operations/CosmosDbContainerOperationsIT.java
@@ -295,7 +295,7 @@ class CosmosDbContainerOperationsIT {
     }
 
     @Test
-    void testCaptureChangeFeed() throws InterruptedException {
+    void testCaptureChangeFeed() {
         // we create our lease container first with our lease database
         final Mono<CosmosAsyncContainer> leaseContainer = CosmosDbOperationsBuilder.withClient(clientWrapper)
                 .withContainerName("camel-lease")