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 a634746e7f88f81240fab116a80fd1e5cc55da22 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Tue Apr 12 18:16:45 2022 +0200 CAMEL-17763: cleaned up unused exceptions in camel-pgevent --- .../src/test/java/org/apache/camel/pgevent/PgEventHelperTest.java | 2 +- .../java/org/apache/camel/pgevent/integration/PgEventPubSubIT.java | 4 ++-- .../camel/pgevent/integration/PgEventWithDefinedDatasourceIT.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/PgEventHelperTest.java b/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/PgEventHelperTest.java index 3961d317a56..3e1df152970 100644 --- a/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/PgEventHelperTest.java +++ b/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/PgEventHelperTest.java @@ -33,7 +33,7 @@ import static org.mockito.Mockito.when; public class PgEventHelperTest { @Test - public void testToPGConnectionWithNullConnection() throws Exception { + public void testToPGConnectionWithNullConnection() { assertThrows(IllegalArgumentException.class, () -> PgEventHelper.toPGConnection(null)); } diff --git a/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventPubSubIT.java b/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventPubSubIT.java index ff13f0d50bb..6d984e11aac 100644 --- a/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventPubSubIT.java +++ b/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventPubSubIT.java @@ -38,10 +38,10 @@ public class PgEventPubSubIT extends PgEventITSupport { } @Override - protected RoutesBuilder createRouteBuilder() throws Exception { + protected RoutesBuilder createRouteBuilder() { return new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from(timerEndpoint) .setBody(constant(TEST_MESSAGE_BODY)) .to(String.format( diff --git a/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventWithDefinedDatasourceIT.java b/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventWithDefinedDatasourceIT.java index 50d0fbc4774..21a9b08db77 100644 --- a/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventWithDefinedDatasourceIT.java +++ b/components/camel-pgevent/src/test/java/org/apache/camel/pgevent/integration/PgEventWithDefinedDatasourceIT.java @@ -40,7 +40,7 @@ public class PgEventWithDefinedDatasourceIT extends PgEventITSupport { private MockEndpoint mockEndpoint; @BindToRegistry("pgDataSource") - public PGDataSource loadDataSource() throws Exception { + public PGDataSource loadDataSource() { PGDataSource dataSource = new PGDataSource(); dataSource.setHost(getHost()); dataSource.setPort(getMappedPort()); @@ -58,10 +58,10 @@ public class PgEventWithDefinedDatasourceIT extends PgEventITSupport { } @Override - protected RoutesBuilder createRouteBuilder() throws Exception { + protected RoutesBuilder createRouteBuilder() { return new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from(timerEndpoint) .setBody(constant(TEST_MESSAGE_BODY)) .to(notifyEndpoint);