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/12 17:17:18 UTC

[camel] 09/10: CAMEL-17763: cleaned up unused exceptions in camel-jdbc

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 b36aea5dec939a0062015157fbae676eb42c4bfe
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Apr 12 16:07:47 2022 +0200

    CAMEL-17763: cleaned up unused exceptions in camel-jdbc
---
 .../camel/component/jdbc/AbstractJdbcGeneratedKeysTest.java       | 8 ++++----
 .../component/jdbc/JdbcParameterizedQueryGeneratedKeysTest.java   | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/AbstractJdbcGeneratedKeysTest.java b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/AbstractJdbcGeneratedKeysTest.java
index eae2d17c615..0f9ed305ae0 100644
--- a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/AbstractJdbcGeneratedKeysTest.java
+++ b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/AbstractJdbcGeneratedKeysTest.java
@@ -61,7 +61,7 @@ public abstract class AbstractJdbcGeneratedKeysTest extends AbstractJdbcTestSupp
                 "generated keys row count should be one");
     }
 
-    protected void testRetrieveGeneratedKeys(String query) throws Exception {
+    protected void testRetrieveGeneratedKeys(String query) {
         testRetrieveGeneratedKeys(query, null);
     }
 
@@ -99,7 +99,7 @@ public abstract class AbstractJdbcGeneratedKeysTest extends AbstractJdbcTestSupp
                 "generated keys row count should be one");
     }
 
-    protected void testRetrieveGeneratedKeysWithStringGeneratedColumns(String query) throws Exception {
+    protected void testRetrieveGeneratedKeysWithStringGeneratedColumns(String query) {
         testRetrieveGeneratedKeysWithStringGeneratedColumns(query, null);
     }
 
@@ -137,7 +137,7 @@ public abstract class AbstractJdbcGeneratedKeysTest extends AbstractJdbcTestSupp
                 "generated keys row count should be one");
     }
 
-    protected void testRetrieveGeneratedKeysWithIntGeneratedColumns(String query) throws Exception {
+    protected void testRetrieveGeneratedKeysWithIntGeneratedColumns(String query) {
         testRetrieveGeneratedKeysWithIntGeneratedColumns(query, null);
     }
 
@@ -162,7 +162,7 @@ public abstract class AbstractJdbcGeneratedKeysTest extends AbstractJdbcTestSupp
         assertTrue(exchange.isFailed());
     }
 
-    protected void testGivenAnInvalidGeneratedColumnsHeaderThenAnExceptionIsThrown(String query) throws Exception {
+    protected void testGivenAnInvalidGeneratedColumnsHeaderThenAnExceptionIsThrown(String query) {
         testGivenAnInvalidGeneratedColumnsHeaderThenAnExceptionIsThrown(query, null);
     }
 
diff --git a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcParameterizedQueryGeneratedKeysTest.java b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcParameterizedQueryGeneratedKeysTest.java
index f5620f9281c..b42efe0f24c 100644
--- a/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcParameterizedQueryGeneratedKeysTest.java
+++ b/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcParameterizedQueryGeneratedKeysTest.java
@@ -32,24 +32,24 @@ public class JdbcParameterizedQueryGeneratedKeysTest extends AbstractJdbcGenerat
     }
 
     @Test
-    public void testRetrieveGeneratedKeys() throws Exception {
+    public void testRetrieveGeneratedKeys() {
         super.testRetrieveGeneratedKeys("insert into tableWithAutoIncr (content) values (:?value)", VALUE_MAP);
     }
 
     @Test
-    public void testRetrieveGeneratedKeysWithStringGeneratedColumns() throws Exception {
+    public void testRetrieveGeneratedKeysWithStringGeneratedColumns() {
         super.testRetrieveGeneratedKeysWithStringGeneratedColumns("insert into tableWithAutoIncr (content) values (:?value)",
                 VALUE_MAP);
     }
 
     @Test
-    public void testRetrieveGeneratedKeysWithIntGeneratedColumns() throws Exception {
+    public void testRetrieveGeneratedKeysWithIntGeneratedColumns() {
         super.testRetrieveGeneratedKeysWithIntGeneratedColumns("insert into tableWithAutoIncr (content) values (:?value)",
                 VALUE_MAP);
     }
 
     @Test
-    public void testGivenAnInvalidGeneratedColumnsHeaderThenAnExceptionIsThrown() throws Exception {
+    public void testGivenAnInvalidGeneratedColumnsHeaderThenAnExceptionIsThrown() {
         super.testGivenAnInvalidGeneratedColumnsHeaderThenAnExceptionIsThrown(
                 "insert into tableWithAutoIncr (content) values (:?value)", VALUE_MAP);
     }