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:47:20 UTC
[camel] 06/09: CAMEL-17763: cleaned up unused exceptions in camel-jsch
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 5ccc5244cf99c9f2b6e465d1dcab5e99b4055739
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Apr 12 16:18:30 2022 +0200
CAMEL-17763: cleaned up unused exceptions in camel-jsch
---
.../test/java/org/apache/camel/component/scp/ScpAlgorithmsTest.java | 4 ++--
.../java/org/apache/camel/component/scp/ScpServerTestSupport.java | 2 +-
.../java/org/apache/camel/component/scp/ScpSimpleProduceTest.java | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpAlgorithmsTest.java b/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpAlgorithmsTest.java
index 830d03807be..1637367e9f8 100644
--- a/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpAlgorithmsTest.java
+++ b/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpAlgorithmsTest.java
@@ -37,10 +37,10 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
public class ScpAlgorithmsTest extends ScpServerTestSupport {
@Override
- protected RouteBuilder createRouteBuilder() throws Exception {
+ protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
@Override
- public void configure() throws Exception {
+ public void configure() {
from("file:" + getScpPath() + "?recursive=true&delete=true")
.convertBodyTo(String.class)
.to("mock:result");
diff --git a/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpServerTestSupport.java b/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpServerTestSupport.java
index 7a0f1a4f9ae..32525cb12fc 100644
--- a/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpServerTestSupport.java
+++ b/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpServerTestSupport.java
@@ -84,7 +84,7 @@ public abstract class ScpServerTestSupport extends CamelTestSupport {
}
@BeforeAll
- public static void initPort() throws Exception {
+ public static void initPort() {
port = AvailablePortFinder.getNextAvailable();
}
diff --git a/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpSimpleProduceTest.java b/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpSimpleProduceTest.java
index b8ce77a792e..74528482e99 100644
--- a/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpSimpleProduceTest.java
+++ b/components/camel-jsch/src/test/java/org/apache/camel/component/scp/ScpSimpleProduceTest.java
@@ -30,10 +30,10 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
public class ScpSimpleProduceTest extends ScpServerTestSupport {
@Override
- protected RouteBuilder createRouteBuilder() throws Exception {
+ protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
@Override
- public void configure() throws Exception {
+ public void configure() {
from("file:" + getScpPath() + "?recursive=true&delete=true")
.convertBodyTo(String.class)
.to("mock:result");