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/01 14:26:07 UTC

[camel] branch main updated (0443549 -> c9273ac)

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

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


    from 0443549  (chores) ci: fine tune the paths that may trigger a build on push or PR
     new 5ae4c28  CAMEL-17763: cleanup unused exceptions in camel-any23
     new f480733  CAMEL-17763: cleanup unused exceptions in camel-bonita
     new 2cc6052  CAMEL-17763: cleanup unused exceptions in camel-braintree
     new 9a659f8  CAMEL-17763: cleanup unused exceptions in camel-caffeine
     new c9273ac  CAMEL-17763: cleanup unused exceptions in camel-caffeine-lrucache

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../dataformat/any23/Any23DataFormatHTTPTest.java  |  2 +-
 .../camel/component/bonita/api/BonitaAPITest.java  |  4 +--
 .../bonita/api/BonitaAuthFilterConnectionTest.java |  2 +-
 .../component/bonita/api/BonitaAuthFilterTest.java |  4 +--
 .../bonita/integration/BonitaProducerManualIT.java |  4 +--
 .../camel/component/braintree/AddOnGatewayIT.java  |  4 +--
 .../component/braintree/AddressGatewayIT.java      | 14 ++++----
 .../component/braintree/ClientTokenGatewayIT.java  |  4 +--
 .../braintree/CreditCardVerificationGatewayIT.java |  6 ++--
 .../component/braintree/CustomerGatewayIT.java     | 11 +++----
 .../component/braintree/DiscountGatewayIT.java     |  4 +--
 .../component/braintree/DisputeGatewayIT.java      | 22 ++++++-------
 .../braintree/DocumentUploadGatewayIT.java         |  4 +--
 .../braintree/MerchantAccountGatewayIT.java        |  8 ++---
 .../braintree/PaymentMethodGatewayIT.java          | 14 ++++----
 .../braintree/PaymentMethodNonceGatewayIT.java     |  6 ++--
 .../camel/component/braintree/PlanGatewayIT.java   |  4 +--
 .../camel/component/braintree/ReportGatewayIT.java |  2 +-
 .../braintree/SettlementBatchSummaryGatewayIT.java |  6 ++--
 .../component/braintree/SubscriptionGatewayIT.java | 18 +++++-----
 .../component/braintree/TransactionGatewayIT.java  | 38 +++++++++++-----------
 .../braintree/WebhookNotificationGatewayIT.java    | 20 ++++++------
 .../caffeine/lrucache/CaffeineLRUCacheTest.java    |  4 +--
 .../lrucache/CaffeineLRUSoftCacheTest.java         | 20 ++++++------
 .../loadcache/CaffeineLoadCacheTestSupport.java    |  2 +-
 .../CaffeineIdempotentRepositoryWithSplitTest.java |  4 +--
 26 files changed, 115 insertions(+), 116 deletions(-)

[camel] 03/05: CAMEL-17763: cleanup unused exceptions in camel-braintree

Posted by or...@apache.org.
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 2cc6052e2683cc034b0452f423984c590d884a24
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 15:32:28 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-braintree
---
 .../camel/component/braintree/AddOnGatewayIT.java  |  4 +--
 .../component/braintree/AddressGatewayIT.java      | 14 ++++----
 .../component/braintree/ClientTokenGatewayIT.java  |  4 +--
 .../braintree/CreditCardVerificationGatewayIT.java |  6 ++--
 .../component/braintree/CustomerGatewayIT.java     | 11 +++----
 .../component/braintree/DiscountGatewayIT.java     |  4 +--
 .../component/braintree/DisputeGatewayIT.java      | 22 ++++++-------
 .../braintree/DocumentUploadGatewayIT.java         |  4 +--
 .../braintree/MerchantAccountGatewayIT.java        |  8 ++---
 .../braintree/PaymentMethodGatewayIT.java          | 14 ++++----
 .../braintree/PaymentMethodNonceGatewayIT.java     |  6 ++--
 .../camel/component/braintree/PlanGatewayIT.java   |  4 +--
 .../camel/component/braintree/ReportGatewayIT.java |  2 +-
 .../braintree/SettlementBatchSummaryGatewayIT.java |  6 ++--
 .../component/braintree/SubscriptionGatewayIT.java | 18 +++++-----
 .../component/braintree/TransactionGatewayIT.java  | 38 +++++++++++-----------
 .../braintree/WebhookNotificationGatewayIT.java    | 20 ++++++------
 17 files changed, 92 insertions(+), 93 deletions(-)

diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddOnGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddOnGatewayIT.java
index 7b5808e..11f5f08 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddOnGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddOnGatewayIT.java
@@ -37,7 +37,7 @@ public class AddOnGatewayIT extends AbstractBraintreeTestSupport {
 
     @Disabled
     @Test
-    public void testAll() throws Exception {
+    public void testAll() {
         final List<AddOn> result = requestBody("direct://ALL", null, List.class);
 
         assertNotNull(result, "all result");
@@ -45,7 +45,7 @@ public class AddOnGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for all
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddressGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddressGatewayIT.java
index d6188ae..ba32659 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddressGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/AddressGatewayIT.java
@@ -59,7 +59,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected void doPostSetup() throws Exception {
+    protected void doPostSetup() {
         this.gateway = getGateway();
         this.customer = gateway.customer().create(
                 new CustomerRequest()
@@ -74,7 +74,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
 
     @Override
     @AfterEach
-    public void tearDown() throws Exception {
+    public void tearDown() {
         if (this.gateway != null && customer != null) {
             for (String id : this.addressIds) {
                 if (this.gateway.address().delete(customer.getId(), id).isSuccess()) {
@@ -116,7 +116,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -140,7 +140,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testDelete() throws Exception {
+    public void testDelete() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -161,7 +161,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -181,7 +181,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testUpdate() throws Exception {
+    public void testUpdate() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -211,7 +211,7 @@ public class AddressGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for create
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ClientTokenGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ClientTokenGatewayIT.java
index ce72001..ad131ff 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ClientTokenGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ClientTokenGatewayIT.java
@@ -29,14 +29,14 @@ public class ClientTokenGatewayIT extends AbstractBraintreeTestSupport {
     private static final String PATH_PREFIX = getApiNameAsString(ClientTokenGatewayApiMethod.class);
 
     @Test
-    public void testClientTokenGeneration() throws Exception {
+    public void testClientTokenGeneration() {
         final String token = requestBody("direct://GENERATE", null, String.class);
 
         assertTrue(ObjectHelper.isNotEmpty(token));
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 from("direct://GENERATE")
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CreditCardVerificationGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CreditCardVerificationGatewayIT.java
index 76e203c..dbf07ed 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CreditCardVerificationGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CreditCardVerificationGatewayIT.java
@@ -39,7 +39,7 @@ public class CreditCardVerificationGatewayIT extends AbstractBraintreeTestSuppor
     // TODO provide parameter values for find
     @Disabled
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         // using String message body for single parameter "id"
         final CreditCardVerification result = requestBody("direct://FIND", null, CreditCardVerification.class);
 
@@ -50,7 +50,7 @@ public class CreditCardVerificationGatewayIT extends AbstractBraintreeTestSuppor
     // TODO provide parameter values for search
     @Disabled
     @Test
-    public void testSearch() throws Exception {
+    public void testSearch() {
         // using com.braintreegateway.CreditCardVerificationSearchRequest message body for single parameter "query"
         final ResourceCollection<CreditCardVerification> result
                 = requestBody("direct://SEARCH", null, ResourceCollection.class);
@@ -60,7 +60,7 @@ public class CreditCardVerificationGatewayIT extends AbstractBraintreeTestSuppor
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for find
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CustomerGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CustomerGatewayIT.java
index 84ba9f6..4ccbb09 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CustomerGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/CustomerGatewayIT.java
@@ -54,10 +54,9 @@ public class CustomerGatewayIT extends AbstractBraintreeTestSupport {
      * Customers management workflow: - create a customer - lookup by id - update first name - delete by id - confirm
      * deletion by searching again
      *
-     * @throws Exception
      */
     @Test
-    public void testCustomerManagementWorkflow() throws Exception {
+    public void testCustomerManagementWorkflow() {
         String customerLastName = UUID.randomUUID().toString();
         String customerId = null;
 
@@ -119,7 +118,7 @@ public class CustomerGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testUpdateUnknownCustomer() throws Exception {
+    public void testUpdateUnknownCustomer() {
         String id = "unknown-" + UUID.randomUUID().toString();
 
         HashMap<String, Object> headers = new HashMap<>();
@@ -134,7 +133,7 @@ public class CustomerGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testSearchUnknownCustomer() throws Exception {
+    public void testSearchUnknownCustomer() {
         String uuid = "unknown-" + UUID.randomUUID().toString();
 
         Exception ex = assertThrows(CamelExecutionException.class,
@@ -144,7 +143,7 @@ public class CustomerGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testWrongCustomerCreateRequest() throws Exception {
+    public void testWrongCustomerCreateRequest() {
         // Create customer
         Result<Customer> createResult = requestBody(
                 "direct://CREATE_IN_BODY",
@@ -179,7 +178,7 @@ public class CustomerGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
             public void configure() {
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DiscountGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DiscountGatewayIT.java
index 01ccf34..70cfb31 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DiscountGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DiscountGatewayIT.java
@@ -39,7 +39,7 @@ public class DiscountGatewayIT extends AbstractBraintreeTestSupport {
 
     @Disabled
     @Test
-    public void testAll() throws Exception {
+    public void testAll() {
         final List<Discount> result = requestBody("direct://ALL", null, List.class);
 
         assertNotNull(result, "all result");
@@ -47,7 +47,7 @@ public class DiscountGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for all
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DisputeGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DisputeGatewayIT.java
index d6df106..0ee14b7 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DisputeGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DisputeGatewayIT.java
@@ -63,12 +63,12 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     private BraintreeGateway gateway;
 
     @Override
-    protected void doPostSetup() throws Exception {
+    protected void doPostSetup() {
         this.gateway = getGateway();
     }
 
     @Test
-    public void testAccept() throws Exception {
+    public void testAccept() {
         Dispute createdDispute = createDispute();
         assertEquals(Dispute.Status.OPEN, createdDispute.getStatus());
 
@@ -88,7 +88,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testAddFileEvidence() throws Exception {
+    public void testAddFileEvidence() {
         Dispute createdDispute = createDispute();
         assertEquals(Dispute.Status.OPEN, createdDispute.getStatus());
         DocumentUpload uploadedDocument = uploadDocument();
@@ -108,7 +108,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testAddFileEvidenceOne() throws Exception {
+    public void testAddFileEvidenceOne() {
         Dispute createdDispute = createDispute();
         assertEquals(Dispute.Status.OPEN, createdDispute.getStatus());
         DocumentUpload uploadedDocument = uploadDocument();
@@ -129,7 +129,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testAddTextEvidence() throws Exception {
+    public void testAddTextEvidence() {
         final String textEvidence = "Text Evidence";
 
         Dispute createdDispute = createDispute();
@@ -152,7 +152,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testAddTextEvidenceOne() throws Exception {
+    public void testAddTextEvidenceOne() {
         final String textEvidence = "Text Evidence";
 
         Dispute createdDispute = createDispute();
@@ -177,7 +177,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testFinalize() throws Exception {
+    public void testFinalize() {
         Dispute createdDispute = createDispute();
         assertEquals(Dispute.Status.OPEN, createdDispute.getStatus());
 
@@ -198,7 +198,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         Dispute createdDispute = createDispute();
         assertEquals(Dispute.Status.OPEN, createdDispute.getStatus());
 
@@ -210,7 +210,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testRemoveEvidence() throws Exception {
+    public void testRemoveEvidence() {
         final String textEvidence = "Text Evidence";
 
         Dispute createdDispute = createDispute();
@@ -247,7 +247,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testSearch() throws Exception {
+    public void testSearch() {
         Dispute createdDispute = createDispute();
         assertEquals(Dispute.Status.OPEN, createdDispute.getStatus());
 
@@ -263,7 +263,7 @@ public class DisputeGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // route to create transaction
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DocumentUploadGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DocumentUploadGatewayIT.java
index ea28437..68caf4f 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DocumentUploadGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/DocumentUploadGatewayIT.java
@@ -41,7 +41,7 @@ public class DocumentUploadGatewayIT extends AbstractBraintreeTestSupport {
             = BraintreeApiCollection.getCollection().getApiName(DocumentUploadGatewayApiMethod.class).getName();
 
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         final String documentName = "pdf-sample.pdf";
 
         File evidenceDocument = new File(getClass().getClassLoader().getResource(documentName).getPath());
@@ -61,7 +61,7 @@ public class DocumentUploadGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for create
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/MerchantAccountGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/MerchantAccountGatewayIT.java
index fe44de2..6db7e52 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/MerchantAccountGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/MerchantAccountGatewayIT.java
@@ -41,7 +41,7 @@ public class MerchantAccountGatewayIT extends AbstractBraintreeTestSupport {
 
     @Disabled
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         final String merchantId = UUID.randomUUID().toString();
         final Result<MerchantAccount> result = requestBody("direct://CREATE",
                 new MerchantAccountRequest()
@@ -61,7 +61,7 @@ public class MerchantAccountGatewayIT extends AbstractBraintreeTestSupport {
 
     @Disabled
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         final Map<String, Object> headers = new HashMap<>();
         headers.put(BraintreeConstants.PROPERTY_PREFIX + "id", System.getenv("CAMEL_BRAINTREE_MERCHANT_ACCOUNT_ID"));
         final MerchantAccount result = requestBodyAndHeaders("direct://FIND", null, headers, MerchantAccount.class);
@@ -71,7 +71,7 @@ public class MerchantAccountGatewayIT extends AbstractBraintreeTestSupport {
 
     @Disabled
     @Test
-    public void testUpdate() throws Exception {
+    public void testUpdate() {
         final Map<String, Object> headers = new HashMap<>();
         headers.put(BraintreeConstants.PROPERTY_PREFIX + "id", System.getenv("CAMEL_BRAINTREE_MERCHANT_ACCOUNT_ID"));
 
@@ -94,7 +94,7 @@ public class MerchantAccountGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for create
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodGatewayIT.java
index eb008d7..b79ea46 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodGatewayIT.java
@@ -58,7 +58,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected void doPostSetup() throws Exception {
+    protected void doPostSetup() {
         this.gateway = getGateway();
         this.customer = gateway.customer().create(
                 new CustomerRequest()
@@ -73,7 +73,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
 
     @Override
     @AfterEach
-    public void tearDown() throws Exception {
+    public void tearDown() {
         if (this.gateway != null) {
             for (String token : this.paymentMethodsTokens) {
                 if (this.gateway.paymentMethod().delete(token).isSuccess()) {
@@ -112,7 +112,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -130,7 +130,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testDelete() throws Exception {
+    public void testDelete() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -145,7 +145,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -160,7 +160,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testUpdate() throws Exception {
+    public void testUpdate() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
         assertNotNull(this.customer, "Customer can't be null");
 
@@ -190,7 +190,7 @@ public class PaymentMethodGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for create
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodNonceGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodNonceGatewayIT.java
index 9efad357..fa93bc5 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodNonceGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PaymentMethodNonceGatewayIT.java
@@ -37,7 +37,7 @@ public class PaymentMethodNonceGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for create
     @Disabled
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         // using String message body for single parameter "paymentMethodToken"
         final com.braintreegateway.Result result = requestBody("direct://CREATE", null);
 
@@ -48,7 +48,7 @@ public class PaymentMethodNonceGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for find
     @Disabled
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         // using String message body for single parameter "paymentMethodNonce"
         final com.braintreegateway.PaymentMethodNonce result = requestBody("direct://FIND", null);
 
@@ -57,7 +57,7 @@ public class PaymentMethodNonceGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for create
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PlanGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PlanGatewayIT.java
index 778db54..21dbd79 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PlanGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/PlanGatewayIT.java
@@ -37,7 +37,7 @@ public class PlanGatewayIT extends AbstractBraintreeTestSupport {
 
     @Disabled
     @Test
-    public void testAll() throws Exception {
+    public void testAll() {
         final List<Plan> result = requestBody("direct://ALL", null, List.class);
 
         assertNotNull(result, "all result");
@@ -45,7 +45,7 @@ public class PlanGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for all
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ReportGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ReportGatewayIT.java
index ba14da4..0dd8577 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ReportGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/ReportGatewayIT.java
@@ -75,7 +75,7 @@ public class ReportGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for transactionLevelFees
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SettlementBatchSummaryGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SettlementBatchSummaryGatewayIT.java
index 7be1e47..fa9adb8 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SettlementBatchSummaryGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SettlementBatchSummaryGatewayIT.java
@@ -40,7 +40,7 @@ public class SettlementBatchSummaryGatewayIT extends AbstractBraintreeTestSuppor
     // TODO provide parameter values for generate
     @Disabled
     @Test
-    public void testGenerate() throws Exception {
+    public void testGenerate() {
         // using java.util.Calendar message body for single parameter "settlementDate"
         final com.braintreegateway.Result result = requestBody("direct://GENERATE", null);
 
@@ -51,7 +51,7 @@ public class SettlementBatchSummaryGatewayIT extends AbstractBraintreeTestSuppor
     // TODO provide parameter values for generate
     @Disabled
     @Test
-    public void testGenerateWithCustomFields() throws Exception {
+    public void testGenerateWithCustomFields() {
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is java.util.Calendar
         headers.put("CamelBraintree.settlementDate", null);
@@ -65,7 +65,7 @@ public class SettlementBatchSummaryGatewayIT extends AbstractBraintreeTestSuppor
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for generate
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SubscriptionGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SubscriptionGatewayIT.java
index 1a77ebb..bc0bd0f 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SubscriptionGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/SubscriptionGatewayIT.java
@@ -40,7 +40,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for cancel
     @Disabled
     @Test
-    public void testCancel() throws Exception {
+    public void testCancel() {
         // using String message body for single parameter "id"
         final com.braintreegateway.Result result = requestBody("direct://CANCEL", null);
 
@@ -51,7 +51,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for create
     @Disabled
     @Test
-    public void testCreate() throws Exception {
+    public void testCreate() {
         // using com.braintreegateway.SubscriptionRequest message body for single parameter "request"
         final com.braintreegateway.Result result = requestBody("direct://CREATE", null);
 
@@ -62,7 +62,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for delete
     @Disabled
     @Test
-    public void testDelete() throws Exception {
+    public void testDelete() {
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is String
         headers.put("CamelBraintree.customerId", null);
@@ -78,7 +78,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for find
     @Disabled
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         // using String message body for single parameter "id"
         final com.braintreegateway.Subscription result = requestBody("direct://FIND", null);
 
@@ -89,7 +89,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for retryCharge
     @Disabled
     @Test
-    public void testRetryCharge() throws Exception {
+    public void testRetryCharge() {
         // using String message body for single parameter "subscriptionId"
         final com.braintreegateway.Result result = requestBody("direct://RETRYCHARGE", null);
 
@@ -100,7 +100,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for retryCharge
     @Disabled
     @Test
-    public void testRetryChargeWithAmount() throws Exception {
+    public void testRetryChargeWithAmount() {
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is String
         headers.put("CamelBraintree.subscriptionId", null);
@@ -116,7 +116,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for search
     @Disabled
     @Test
-    public void testSearch() throws Exception {
+    public void testSearch() {
         // using com.braintreegateway.SubscriptionSearchRequest message body for single parameter "searchRequest"
         final com.braintreegateway.ResourceCollection result = requestBody("direct://SEARCH", null);
 
@@ -127,7 +127,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for update
     @Disabled
     @Test
-    public void testUpdate() throws Exception {
+    public void testUpdate() {
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is String
         headers.put("CamelBraintree.id", null);
@@ -141,7 +141,7 @@ public class SubscriptionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for cancel
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIT.java
index 2968d22..6203ee3 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/TransactionGatewayIT.java
@@ -61,13 +61,13 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected void doPostSetup() throws Exception {
+    protected void doPostSetup() {
         this.gateway = getGateway();
     }
 
     @Override
     @AfterEach
-    public void tearDown() throws Exception {
+    public void tearDown() {
         if (this.gateway != null) {
             for (String token : this.transactionIds) {
                 // TODO: cleanup
@@ -81,7 +81,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Test
-    public void testSale() throws Exception {
+    public void testSale() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> result = requestBody(
@@ -103,7 +103,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testCloneTransaction() throws Exception {
+    public void testCloneTransaction() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -146,7 +146,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testFind() throws Exception {
+    public void testFind() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -174,7 +174,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testSubmitForSettlementWithId() throws Exception {
+    public void testSubmitForSettlementWithId() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -204,7 +204,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testSubmitForSettlementWithIdAndAmount() throws Exception {
+    public void testSubmitForSettlementWithIdAndAmount() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -238,7 +238,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testSubmitForSettlementWithRequest() throws Exception {
+    public void testSubmitForSettlementWithRequest() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -273,7 +273,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testRefund() throws Exception {
+    public void testRefund() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -307,7 +307,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testRefundWithAmount() throws Exception {
+    public void testRefundWithAmount() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -345,7 +345,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testRefundWithRequest() throws Exception {
+    public void testRefundWithRequest() {
         assertNotNull(this.gateway, "BraintreeGateway can't be null");
 
         final Result<Transaction> createResult = requestBody(
@@ -390,7 +390,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for cancelRelease
     @Disabled
     @Test
-    public void testCancelRelease() throws Exception {
+    public void testCancelRelease() {
         // using String message body for single parameter "id"
         final com.braintreegateway.Result result = requestBody("direct://CANCELRELEASE", null);
 
@@ -401,7 +401,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for credit
     @Disabled
     @Test
-    public void testCredit() throws Exception {
+    public void testCredit() {
         // using com.braintreegateway.TransactionRequest message body for single parameter "request"
         final com.braintreegateway.Result result = requestBody("direct://CREDIT", null);
 
@@ -412,7 +412,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for holdInEscrow
     @Disabled
     @Test
-    public void testHoldInEscrow() throws Exception {
+    public void testHoldInEscrow() {
         // using String message body for single parameter "id"
         final com.braintreegateway.Result result = requestBody("direct://HOLDINESCROW", null);
 
@@ -423,7 +423,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for releaseFromEscrow
     @Disabled
     @Test
-    public void testReleaseFromEscrow() throws Exception {
+    public void testReleaseFromEscrow() {
         // using String message body for single parameter "id"
         final com.braintreegateway.Result result = requestBody("direct://RELEASEFROMESCROW", null);
 
@@ -434,7 +434,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for search
     @Disabled
     @Test
-    public void testSearch() throws Exception {
+    public void testSearch() {
         // using com.braintreegateway.TransactionSearchRequest message body for single parameter "query"
         final com.braintreegateway.ResourceCollection result = requestBody("direct://SEARCH", null);
 
@@ -445,7 +445,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for submitForPartialSettlement
     @Disabled
     @Test
-    public void testSubmitForPartialSettlement() throws Exception {
+    public void testSubmitForPartialSettlement() {
         final Map<String, Object> headers = new HashMap<>();
         // parameter type is String
         headers.put("CamelBraintree.id", null);
@@ -461,7 +461,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // TODO provide parameter values for voidTransaction
     @Disabled
     @Test
-    public void testVoidTransaction() throws Exception {
+    public void testVoidTransaction() {
         // using String message body for single parameter "id"
         final com.braintreegateway.Result result = requestBody("direct://VOIDTRANSACTION", null);
 
@@ -474,7 +474,7 @@ public class TransactionGatewayIT extends AbstractBraintreeTestSupport {
     // *************************************************************************
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for cancelRelease
diff --git a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/WebhookNotificationGatewayIT.java b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/WebhookNotificationGatewayIT.java
index 42f25d3..d09c152 100644
--- a/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/WebhookNotificationGatewayIT.java
+++ b/components/camel-braintree/src/test/java/org/apache/camel/component/braintree/WebhookNotificationGatewayIT.java
@@ -56,7 +56,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParseSubscriptionTest(WebhookNotification.Kind.SUBSCRIPTION_WENT_PAST_DUE);
     }
 
-    private void runParseSubscriptionTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParseSubscriptionTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "my_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -69,7 +69,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParseMerchantAccountTest(WebhookNotification.Kind.SUB_MERCHANT_ACCOUNT_DECLINED);
     }
 
-    private void runParseMerchantAccountTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParseMerchantAccountTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "my_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -83,7 +83,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParseTransactionTest(WebhookNotification.Kind.TRANSACTION_SETTLEMENT_DECLINED);
     }
 
-    private void runParseTransactionTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParseTransactionTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "my_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -96,7 +96,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParseDisbursementTest(WebhookNotification.Kind.DISBURSEMENT_EXCEPTION);
     }
 
-    private void runParseDisbursementTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParseDisbursementTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "my_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -110,7 +110,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParseDisputeTest(WebhookNotification.Kind.DISPUTE_WON);
     }
 
-    private void runParseDisputeTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParseDisputeTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "my_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -124,7 +124,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParsePartnerMerchantTest(WebhookNotification.Kind.PARTNER_MERCHANT_DECLINED);
     }
 
-    private void runParsePartnerMerchantTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParsePartnerMerchantTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "merchant_public_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -132,7 +132,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testParseConnectedMerchantStatusTransitioned() throws Exception {
+    public void testParseConnectedMerchantStatusTransitioned() {
         final WebhookNotification result = sendSampleNotification(
                 WebhookNotification.Kind.CONNECTED_MERCHANT_STATUS_TRANSITIONED,
                 "my_merchant_public_id");
@@ -148,7 +148,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Test
-    public void testParseConnectedMerchantPayPalStatusChanged() throws Exception {
+    public void testParseConnectedMerchantPayPalStatusChanged() {
         final WebhookNotification result = sendSampleNotification(
                 WebhookNotification.Kind.CONNECTED_MERCHANT_PAYPAL_STATUS_CHANGED,
                 "my_merchant_public_id");
@@ -168,7 +168,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
         runParsePAccountUpdaterTest(WebhookNotification.Kind.ACCOUNT_UPDATER_DAILY_REPORT);
     }
 
-    private void runParsePAccountUpdaterTest(WebhookNotification.Kind kind) throws Exception {
+    private void runParsePAccountUpdaterTest(WebhookNotification.Kind kind) {
         final WebhookNotification result = sendSampleNotification(kind, "my_id");
         assertNotNull(result, "parse result");
         assertEquals(kind, result.getKind());
@@ -213,7 +213,7 @@ public class WebhookNotificationGatewayIT extends AbstractBraintreeTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             public void configure() {
                 // test route for parse

[camel] 02/05: CAMEL-17763: cleanup unused exceptions in camel-bonita

Posted by or...@apache.org.
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 f480733c4f84742539f335af03be19a91c0ed516
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 15:31:11 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-bonita
---
 .../java/org/apache/camel/component/bonita/api/BonitaAPITest.java     | 4 ++--
 .../camel/component/bonita/api/BonitaAuthFilterConnectionTest.java    | 2 +-
 .../org/apache/camel/component/bonita/api/BonitaAuthFilterTest.java   | 4 ++--
 .../camel/component/bonita/integration/BonitaProducerManualIT.java    | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAPITest.java b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAPITest.java
index 6d52ceb..b7a5dea 100644
--- a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAPITest.java
+++ b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAPITest.java
@@ -36,7 +36,7 @@ public class BonitaAPITest {
     }
 
     @Test
-    public void testStartCaseEmptyProcessDefinitionId() throws Exception {
+    public void testStartCaseEmptyProcessDefinitionId() {
         BonitaAPI bonitaApi = BonitaAPIBuilder
                 .build(new BonitaAPIConfig("hostname", "port", "username", "password"));
 
@@ -47,7 +47,7 @@ public class BonitaAPITest {
     }
 
     @Test
-    public void testStartCaseNUllContractInput() throws Exception {
+    public void testStartCaseNUllContractInput() {
         BonitaAPI bonitaApi = BonitaAPIBuilder
                 .build(new BonitaAPIConfig("hostname", "port", "username", "password"));
         ProcessDefinitionResponse processDefinition = new ProcessDefinitionResponse();
diff --git a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterConnectionTest.java b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterConnectionTest.java
index a7db814..c2b8296 100644
--- a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterConnectionTest.java
+++ b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterConnectionTest.java
@@ -48,7 +48,7 @@ public class BonitaAuthFilterConnectionTest {
     private WireMockServer wireMockServer;
 
     @BeforeEach
-    public void setup() throws IOException {
+    public void setup() {
         wireMockServer = new WireMockServer(WireMockConfiguration.options()/*.port(etc)*/);
         wireMockServer.start();
 
diff --git a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterTest.java b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterTest.java
index 18b25c6..599dc16 100644
--- a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterTest.java
+++ b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/api/BonitaAuthFilterTest.java
@@ -47,7 +47,7 @@ public class BonitaAuthFilterTest {
     }
 
     @Test
-    public void testBonitaAuthFilterUsernameEmpty() throws IOException {
+    public void testBonitaAuthFilterUsernameEmpty() {
         BonitaAPIConfig bonitaApiConfig = new BonitaAPIConfig("localhost", "port", "", "password");
         BonitaAuthFilter bonitaAuthFilter = new BonitaAuthFilter(bonitaApiConfig);
         assertThrows(IllegalArgumentException.class,
@@ -55,7 +55,7 @@ public class BonitaAuthFilterTest {
     }
 
     @Test
-    public void testBonitaAuthFilterPasswordEmpty() throws IOException {
+    public void testBonitaAuthFilterPasswordEmpty() {
         BonitaAPIConfig bonitaApiConfig = new BonitaAPIConfig("localhost", "port", "username", "");
         BonitaAuthFilter bonitaAuthFilter = new BonitaAuthFilter(bonitaApiConfig);
         assertThrows(IllegalArgumentException.class,
diff --git a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/integration/BonitaProducerManualIT.java b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/integration/BonitaProducerManualIT.java
index 0209090..a1d9f8b 100644
--- a/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/integration/BonitaProducerManualIT.java
+++ b/components/camel-bonita/src/test/java/org/apache/camel/component/bonita/integration/BonitaProducerManualIT.java
@@ -48,10 +48,10 @@ public class BonitaProducerManualIT extends BonitaIntegrationTestSupport {
     }
 
     @Override
-    protected RoutesBuilder createRouteBuilder() throws Exception {
+    protected RoutesBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:startCase")
                         .to("bonita:startCase?hostname={{host}}&port={{port}}&processName={{process}}&username={{username}}&password={{password}}");
             }

[camel] 04/05: CAMEL-17763: cleanup unused exceptions in camel-caffeine

Posted by or...@apache.org.
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 9a659f87720441663a8600f39e1108ad2b331afc
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 15:33:16 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-caffeine
---
 .../component/caffeine/loadcache/CaffeineLoadCacheTestSupport.java    | 2 +-
 .../idempotent/CaffeineIdempotentRepositoryWithSplitTest.java         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheTestSupport.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheTestSupport.java
index 3093fae..27fdf1d 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheTestSupport.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheTestSupport.java
@@ -31,7 +31,7 @@ public class CaffeineLoadCacheTestSupport extends CamelTestSupport {
         CacheLoader cl = new CacheLoader<Integer, Integer>() {
 
             @Override
-            public Integer load(Integer key) throws Exception {
+            public Integer load(Integer key) {
                 return key + 1;
             }
         };
diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryWithSplitTest.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryWithSplitTest.java
index 5e0b934..7893d5f 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryWithSplitTest.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryWithSplitTest.java
@@ -51,10 +51,10 @@ public class CaffeineIdempotentRepositoryWithSplitTest extends CamelTestSupport
     }
 
     @Override
-    protected RoutesBuilder createRouteBuilder() throws Exception {
+    protected RoutesBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:idempotentRoute")
                     .idempotentConsumer(body(),
                             repo)

[camel] 05/05: CAMEL-17763: cleanup unused exceptions in camel-caffeine-lrucache

Posted by or...@apache.org.
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 c9273acc92775518535576b4da32287ccb609311
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 15:33:53 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-caffeine-lrucache
---
 .../caffeine/lrucache/CaffeineLRUCacheTest.java      |  4 ++--
 .../caffeine/lrucache/CaffeineLRUSoftCacheTest.java  | 20 ++++++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java
index 6d7b241..79ab9d1 100644
--- a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java
+++ b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java
@@ -30,7 +30,7 @@ public class CaffeineLRUCacheTest {
     private LRUCache<String, Service> cache;
 
     @BeforeEach
-    public void setUp() throws Exception {
+    public void setUp() {
         // for testing use sync listener
         cache = new CaffeineLRUCache<>(10, 10, true, false, false, true);
     }
@@ -50,7 +50,7 @@ public class CaffeineLRUCacheTest {
     }
 
     @Test
-    public void testLRUCacheEviction() throws Exception {
+    public void testLRUCacheEviction() {
         MyService service1 = new MyService();
         MyService service2 = new MyService();
         MyService service3 = new MyService();
diff --git a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java
index eba5526..2f2fa68 100644
--- a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java
+++ b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 public class CaffeineLRUSoftCacheTest {
 
     @Test
-    public void testLRUSoftCacheGetAndPut() throws Exception {
+    public void testLRUSoftCacheGetAndPut() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         cache.put(1, "foo");
@@ -48,7 +48,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCacheHitsAndMisses() throws Exception {
+    public void testLRUSoftCacheHitsAndMisses() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         cache.put(1, "foo");
@@ -71,7 +71,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCachePutOverride() throws Exception {
+    public void testLRUSoftCachePutOverride() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         Object old = cache.put(1, "foo");
@@ -89,7 +89,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCachePutAll() throws Exception {
+    public void testLRUSoftCachePutAll() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         Map<Integer, Object> map = new HashMap<>();
@@ -105,7 +105,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCachePutAllAnotherLRUSoftCache() throws Exception {
+    public void testLRUSoftCachePutAllAnotherLRUSoftCache() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         CaffeineLRUSoftCache<Integer, Object> cache2 = new CaffeineLRUSoftCache<>(1000);
@@ -121,7 +121,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCacheRemove() throws Exception {
+    public void testLRUSoftCacheRemove() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         cache.put(1, "foo");
@@ -133,7 +133,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCacheValues() throws Exception {
+    public void testLRUSoftCacheValues() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         cache.put(1, "foo");
@@ -148,7 +148,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCacheEmpty() throws Exception {
+    public void testLRUSoftCacheEmpty() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         assertTrue(cache.isEmpty());
@@ -167,7 +167,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCacheContainsKey() throws Exception {
+    public void testLRUSoftCacheContainsKey() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         assertFalse(cache.containsKey(1));
@@ -184,7 +184,7 @@ public class CaffeineLRUSoftCacheTest {
     }
 
     @Test
-    public void testLRUSoftCacheKeySet() throws Exception {
+    public void testLRUSoftCacheKeySet() {
         CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
 
         cache.put(1, "foo");

[camel] 01/05: CAMEL-17763: cleanup unused exceptions in camel-any23

Posted by or...@apache.org.
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 5ae4c2890e863227fbc1bbb159e56e9c557ba167
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 15:29:17 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-any23
---
 .../java/org/apache/camel/dataformat/any23/Any23DataFormatHTTPTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-any23/src/test/java/org/apache/camel/dataformat/any23/Any23DataFormatHTTPTest.java b/components/camel-any23/src/test/java/org/apache/camel/dataformat/any23/Any23DataFormatHTTPTest.java
index 028862e..9139d39 100644
--- a/components/camel-any23/src/test/java/org/apache/camel/dataformat/any23/Any23DataFormatHTTPTest.java
+++ b/components/camel-any23/src/test/java/org/apache/camel/dataformat/any23/Any23DataFormatHTTPTest.java
@@ -35,7 +35,7 @@ public class Any23DataFormatHTTPTest extends CamelTestSupport {
     private final String baseURI = "http://mock.foo/bar";
 
     @Test
-    public void test() throws Exception {
+    public void test() {
         MockEndpoint resultEndpoint = resolveMandatoryEndpoint("mock:result", MockEndpoint.class);
         template.sendBody("direct:start", "bar");
         List<Exchange> list = resultEndpoint.getReceivedExchanges();