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 3a4595780d361e429aede219706e91c2d5677a9f Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Tue Mar 8 14:41:04 2022 +0100 CAMEL-17763: cleaned up unused exceptions in camel-aws2-athena --- .../component/aws2/athena/AthenaComponentClientRegistryTest.java | 2 +- .../apache/camel/component/aws2/athena/AthenaComponentTest.java | 8 ++++---- .../aws2/athena/AthenaComponentVerifierExtensionTest.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java b/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java index 5007d34..d55fe0d 100644 --- a/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java +++ b/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentClientRegistryTest.java @@ -36,7 +36,7 @@ public class AthenaComponentClientRegistryTest extends CamelTestSupport { } @Test - public void createEndpointWithMinimalAthenaClientMisconfiguration() throws Exception { + public void createEndpointWithMinimalAthenaClientMisconfiguration() { Athena2Component component = context.getComponent("aws2-athena", Athena2Component.class); assertThrows(IllegalArgumentException.class, () -> component.createEndpoint("aws2-athena://label")); } diff --git a/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentTest.java b/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentTest.java index b2391e9..dbbc889 100644 --- a/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentTest.java +++ b/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentTest.java @@ -195,7 +195,7 @@ public class AthenaComponentTest extends CamelTestSupport { } @Test - public void startQueryExecutionAndWaitForQueryCompletion() throws Exception { + public void startQueryExecutionAndWaitForQueryCompletion() { result.expectedMessageCount(1); Message message = template.send("direct:startQueryExecution", ExchangePattern.InOut, new Processor() { @@ -222,7 +222,7 @@ public class AthenaComponentTest extends CamelTestSupport { } @Test - public void startQueryExecutionAndWaitForQueryCompletionWithTransientErrors() throws Exception { + public void startQueryExecutionAndWaitForQueryCompletionWithTransientErrors() { result.expectedMessageCount(1); // 1111... will be returned on the first call to startQueryExecution, 2222... on the second call @@ -273,7 +273,7 @@ public class AthenaComponentTest extends CamelTestSupport { } @Test - public void startQueryExecutionAndWaitForQueryCompletionWithUnrecoverableErrors() throws Exception { + public void startQueryExecutionAndWaitForQueryCompletionWithUnrecoverableErrors() { result.expectedMessageCount(1); // 1111... will be returned on the first call to startQueryExecution, 2222... on the second call @@ -324,7 +324,7 @@ public class AthenaComponentTest extends CamelTestSupport { } @Test - public void startQueryExecutionAndWaitForQueryCompletionTimesOut() throws Exception { + public void startQueryExecutionAndWaitForQueryCompletionTimesOut() { result.expectedMessageCount(1); // 3333... will be returned on the first call to startQueryExecution diff --git a/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentVerifierExtensionTest.java b/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentVerifierExtensionTest.java index d4fa5be..f4fb47d 100644 --- a/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentVerifierExtensionTest.java +++ b/components/camel-aws/camel-aws2-athena/src/test/java/org/apache/camel/component/aws2/athena/AthenaComponentVerifierExtensionTest.java @@ -37,7 +37,7 @@ public class AthenaComponentVerifierExtensionTest extends CamelTestSupport { } @Test - public void testParameters() throws Exception { + public void testParameters() { Component component = context().getComponent("aws2-athena"); ComponentVerifierExtension verifier @@ -56,7 +56,7 @@ public class AthenaComponentVerifierExtensionTest extends CamelTestSupport { } @Test - public void testConnectivity() throws Exception { + public void testConnectivity() { Component component = context().getComponent("aws2-athena"); ComponentVerifierExtension verifier = component.getExtension(ComponentVerifierExtension.class).orElseThrow(IllegalStateException::new); @@ -74,7 +74,7 @@ public class AthenaComponentVerifierExtensionTest extends CamelTestSupport { } @Test - public void testConnectivityAndRegion() throws Exception { + public void testConnectivityAndRegion() { Component component = context().getComponent("aws2-athena"); ComponentVerifierExtension verifier = component.getExtension(ComponentVerifierExtension.class).orElseThrow(IllegalStateException::new);