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 f99e5ca4eb6eeb0d2487904d2917b7445272993e Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Tue Mar 8 14:53:29 2022 +0100 CAMEL-17763: cleaned up unused exceptions in camel-google-mail --- .../apache/camel/component/google/mail/GmailConfigurationTest.java | 4 ++-- .../java/org/apache/camel/component/google/mail/GmailUsersIT.java | 4 ++-- .../org/apache/camel/component/google/mail/GmailUsersLabelsIT.java | 4 ++-- .../camel/component/google/mail/GmailUsersMessagesConsumerIT.java | 2 +- .../org/apache/camel/component/google/mail/GmailUsersMessagesIT.java | 2 +- .../org/apache/camel/component/google/mail/GmailUsersThreadsIT.java | 2 +- .../google/mail/GoogleMailComponentVerifierExtensionTest.java | 4 ++-- .../mail/stream/GoogleMailStreamComponentVerifierExtensionTest.java | 4 ++-- .../google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailConfigurationTest.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailConfigurationTest.java index 15b10a7..42f04a9 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailConfigurationTest.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailConfigurationTest.java @@ -53,7 +53,7 @@ public class GmailConfigurationTest extends AbstractGoogleMailTestSupport { } @Test - public void testConfiguration() throws Exception { + public void testConfiguration() { GoogleMailEndpoint endpoint = getMandatoryEndpoint(TEST_URI, GoogleMailEndpoint.class); GoogleMailConfiguration configuration = endpoint.getConfiguration(); assertNotNull(configuration); @@ -65,7 +65,7 @@ public class GmailConfigurationTest extends AbstractGoogleMailTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() { diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersIT.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersIT.java index cb536da..297e0ae 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersIT.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersIT.java @@ -38,7 +38,7 @@ public class GmailUsersIT extends AbstractGoogleMailTestSupport { = GoogleMailApiCollection.getCollection().getApiName(GmailUsersApiMethod.class).getName(); @Test - public void testGetProfile() throws Exception { + public void testGetProfile() { // using String message body for single parameter "userId" final com.google.api.services.gmail.model.Profile result = requestBody("direct://GETPROFILE", CURRENT_USERID); @@ -48,7 +48,7 @@ public class GmailUsersIT extends AbstractGoogleMailTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() { diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersLabelsIT.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersLabelsIT.java index ee29c6d..801a47b 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersLabelsIT.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersLabelsIT.java @@ -44,7 +44,7 @@ public class GmailUsersLabelsIT extends AbstractGoogleMailTestSupport { = GoogleMailApiCollection.getCollection().getApiName(GmailUsersLabelsApiMethod.class).getName(); @Test - public void testLabels() throws Exception { + public void testLabels() { // using String message body for single parameter "userId" com.google.api.services.gmail.model.ListLabelsResponse labels = requestBody("direct://LIST", CURRENT_USERID); @@ -93,7 +93,7 @@ public class GmailUsersLabelsIT extends AbstractGoogleMailTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() { diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesConsumerIT.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesConsumerIT.java index 5f2a7f4..9807b29 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesConsumerIT.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesConsumerIT.java @@ -52,7 +52,7 @@ public class GmailUsersMessagesConsumerIT extends AbstractGoogleMailTestSupport } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() { diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesIT.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesIT.java index 4dc1b13..a394907 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesIT.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersMessagesIT.java @@ -167,7 +167,7 @@ public class GmailUsersMessagesIT extends AbstractGoogleMailTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() { diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersThreadsIT.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersThreadsIT.java index 6f8b31a..a5ae180 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersThreadsIT.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GmailUsersThreadsIT.java @@ -108,7 +108,7 @@ public class GmailUsersThreadsIT extends AbstractGoogleMailTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() { diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GoogleMailComponentVerifierExtensionTest.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GoogleMailComponentVerifierExtensionTest.java index 741f6f8..0000afc 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GoogleMailComponentVerifierExtensionTest.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/GoogleMailComponentVerifierExtensionTest.java @@ -37,7 +37,7 @@ public class GoogleMailComponentVerifierExtensionTest extends CamelTestSupport { } @Test - public void testParameters() throws Exception { + public void testParameters() { Component component = context().getComponent("google-mail"); ComponentVerifierExtension verifier @@ -53,7 +53,7 @@ public class GoogleMailComponentVerifierExtensionTest extends CamelTestSupport { } @Test - public void testConnectivity() throws Exception { + public void testConnectivity() { Component component = context().getComponent("google-mail"); ComponentVerifierExtension verifier = component.getExtension(ComponentVerifierExtension.class).orElseThrow(IllegalStateException::new); diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamComponentVerifierExtensionTest.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamComponentVerifierExtensionTest.java index 3a911d0..25e5f02 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamComponentVerifierExtensionTest.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamComponentVerifierExtensionTest.java @@ -37,7 +37,7 @@ public class GoogleMailStreamComponentVerifierExtensionTest extends CamelTestSup } @Test - public void testParameters() throws Exception { + public void testParameters() { Component component = context().getComponent("google-mail-stream"); ComponentVerifierExtension verifier @@ -53,7 +53,7 @@ public class GoogleMailStreamComponentVerifierExtensionTest extends CamelTestSup } @Test - public void testConnectivity() throws Exception { + public void testConnectivity() { Component component = context().getComponent("google-mail-stream"); ComponentVerifierExtension verifier = component.getExtension(ComponentVerifierExtension.class).orElseThrow(IllegalStateException::new); diff --git a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java index bb2f16c..e3ef162 100644 --- a/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java +++ b/components/camel-google/camel-google-mail/src/test/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamConsumerIntegrationTest.java @@ -30,7 +30,7 @@ public class GoogleMailStreamConsumerIntegrationTest extends AbstractGoogleMailS } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override public void configure() {