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

    CAMEL-17763: cleaned up unused exceptions in camel-jcr
---
 .../apache/camel/component/jcr/JcrAuthLoginFailureTest.java    |  6 +++---
 .../java/org/apache/camel/component/jcr/JcrAuthLoginTest.java  |  4 ++--
 .../java/org/apache/camel/component/jcr/JcrConverterTest.java  | 10 +++++-----
 .../org/apache/camel/component/jcr/JcrGetNodeByIdTest.java     |  4 ++--
 .../apache/camel/component/jcr/JcrNodePathCreationTest.java    |  4 ++--
 .../camel/component/jcr/JcrProducerDifferentWorkspaceTest.java |  4 ++--
 .../org/apache/camel/component/jcr/JcrProducerSubNodeTest.java |  4 ++--
 .../java/org/apache/camel/component/jcr/JcrProducerTest.java   |  4 ++--
 8 files changed, 20 insertions(+), 20 deletions(-)

diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginFailureTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginFailureTest.java
index 39c5547f1be..4de7c5e9ea9 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginFailureTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginFailureTest.java
@@ -29,7 +29,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 public class JcrAuthLoginFailureTest extends JcrAuthTestBase {
 
     @Test
-    public void testCreateNodeWithAuthentication() throws Exception {
+    public void testCreateNodeWithAuthentication() {
         Exchange exchange = 
createExchangeWithBody("<message>hello!</message>");
         Exchange out = template.send("direct:a", exchange);
         assertNotNull(out);
@@ -39,10 +39,10 @@ public class JcrAuthLoginFailureTest extends 
JcrAuthTestBase {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 // START SNIPPET: jcr
                 from("direct:a").setHeader(JcrConstants.JCR_NODE_NAME,
                         constant("node")).setHeader("my.contents.property",
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginTest.java
index 629045a8e9a..efb0baad3a3 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrAuthLoginTest.java
@@ -50,10 +50,10 @@ public class JcrAuthLoginTest extends JcrAuthTestBase {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 // START SNIPPET: jcr
                 from("direct:a").setHeader(JcrConstants.JCR_NODE_NAME,
                         constant("node")).setHeader("my.contents.property",
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
index ae98ddbab34..cd4c0decd19 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrConverterTest.java
@@ -45,7 +45,7 @@ public class JcrConverterTest {
     protected TypeConverter converter;
 
     @BeforeEach
-    public void init() throws Exception {
+    public void init() {
         converter = new DefaultTypeConverter(
                 new DefaultPackageScanClassResolver(),
                 new Injector() {
@@ -73,22 +73,22 @@ public class JcrConverterTest {
     }
 
     @Test
-    public void testBooleanValueConverter() throws Exception {
+    public void testBooleanValueConverter() {
         assertJcrConverterAvailable(BooleanValue.class, Boolean.TRUE);
     }
 
     @Test
-    public void testBinaryValueConverter() throws Exception {
+    public void testBinaryValueConverter() {
         assertJcrConverterAvailable(BinaryValue.class, new 
ByteArrayInputStream("test".getBytes()));
     }
 
     @Test
-    public void testDateValueConverter() throws Exception {
+    public void testDateValueConverter() {
         assertJcrConverterAvailable(DateValue.class, Calendar.getInstance());
     }
 
     @Test
-    public void testStringValueConverter() throws Exception {
+    public void testStringValueConverter() {
         assertJcrConverterAvailable(StringValue.class, "plain text");
     }
 
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrGetNodeByIdTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrGetNodeByIdTest.java
index ebfc62f3709..78b93aac057 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrGetNodeByIdTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrGetNodeByIdTest.java
@@ -68,10 +68,10 @@ public class JcrGetNodeByIdTest extends JcrRouteTestSupport 
{
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 // START SNIPPET: jcr-get-node
                 from("direct:a")
                         .setHeader(JcrConstants.JCR_OPERATION, 
constant(JcrConstants.JCR_GET_BY_ID))
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrNodePathCreationTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrNodePathCreationTest.java
index cb8b211c777..0b9d10cea6f 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrNodePathCreationTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrNodePathCreationTest.java
@@ -91,10 +91,10 @@ public class JcrNodePathCreationTest extends 
JcrRouteTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 // START SNIPPET: jcr
                 from("direct:a").setHeader(JcrConstants.JCR_NODE_NAME, 
constant("node/with/path"))
                         .setHeader("my.contents.property", 
body()).to("jcr://user:pass@repository/home/test");
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerDifferentWorkspaceTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerDifferentWorkspaceTest.java
index 59ca34a06ac..a6a97cb1afc 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerDifferentWorkspaceTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerDifferentWorkspaceTest.java
@@ -51,10 +51,10 @@ public class JcrProducerDifferentWorkspaceTest extends 
JcrRouteDifferentWorkspac
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 // START SNIPPET: jcr-create-node
                 from("direct:a").setHeader(JcrConstants.JCR_NODE_NAME, 
constant("node"))
                         .setHeader("my.contents.property", body())
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerSubNodeTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerSubNodeTest.java
index 9723c216fd8..735291680f9 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerSubNodeTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerSubNodeTest.java
@@ -67,10 +67,10 @@ public class JcrProducerSubNodeTest extends 
JcrRouteTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:a")
                         .to("jcr://user:pass@repository/home/test");
             }
diff --git 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerTest.java
 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerTest.java
index 5fe6a11028c..aedee09490f 100644
--- 
a/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerTest.java
+++ 
b/components/camel-jcr/src/test/java/org/apache/camel/component/jcr/JcrProducerTest.java
@@ -72,10 +72,10 @@ public class JcrProducerTest extends JcrRouteTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 // START SNIPPET: jcr-create-node
                 context.setUseBreadcrumb(false);
 

Reply via email to