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 <[email protected]>
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

Reply via email to