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/08 15:09:05 UTC
[camel] 07/10: CAMEL-17763: cleanup unused exceptions in camel-xslt-saxon
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 706904d06b93f8b91bf15a48eb5b1d08d8a02a75
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 8 16:00:39 2022 +0200
CAMEL-17763: cleanup unused exceptions in camel-xslt-saxon
---
.../component/xslt/extensions/SaxonExtensionFunctionsTest.java | 6 +++---
.../org/apache/camel/component/xslt/saxon/SAXSourceLogBodyTest.java | 4 ++--
.../camel/component/xslt/saxon/XsltAggregationStrategyTest.java | 4 ++--
.../java/org/apache/camel/component/xslt/saxon/XsltSaxonTest.java | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/extensions/SaxonExtensionFunctionsTest.java b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/extensions/SaxonExtensionFunctionsTest.java
index 43d70dd7d9a..728e76a72f0 100644
--- a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/extensions/SaxonExtensionFunctionsTest.java
+++ b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/extensions/SaxonExtensionFunctionsTest.java
@@ -37,16 +37,16 @@ public class SaxonExtensionFunctionsTest extends CamelTestSupport {
}
@Override
- protected void bindToRegistry(Registry registry) throws Exception {
+ protected void bindToRegistry(Registry registry) {
registry.bind("function1", new MyExtensionFunction1());
registry.bind("function2", new MyExtensionFunction2());
}
@Override
- protected RouteBuilder createRouteBuilder() throws Exception {
+ protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
@Override
- public void configure() throws Exception {
+ public void configure() {
from("direct:extensions")
.toF("xslt-saxon:%s?saxonExtensionFunctions=#function1,#function2", XSLT_PATH)
.to("log:org.apache.camel.component.xslt.extensions?level=INFO");
diff --git a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/SAXSourceLogBodyTest.java b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/SAXSourceLogBodyTest.java
index b108e0a8ffc..ed4312bd610 100644
--- a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/SAXSourceLogBodyTest.java
+++ b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/SAXSourceLogBodyTest.java
@@ -44,10 +44,10 @@ public class SAXSourceLogBodyTest extends CamelTestSupport {
}
@Override
- protected RouteBuilder createRouteBuilder() throws Exception {
+ protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
@Override
- public void configure() throws Exception {
+ public void configure() {
from("direct:start").streamCaching()
// attach a SaxSource to body
.process(new Processor() {
diff --git a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltAggregationStrategyTest.java b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltAggregationStrategyTest.java
index 0296fa85e29..b35509ffa5a 100644
--- a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltAggregationStrategyTest.java
+++ b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltAggregationStrategyTest.java
@@ -52,10 +52,10 @@ public class XsltAggregationStrategyTest extends CamelTestSupport {
}
@Override
- protected RouteBuilder createRouteBuilder() throws Exception {
+ protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
@Override
- public void configure() throws Exception {
+ public void configure() {
from("file:src/test/resources/org/apache/camel/util/toolbox?noop=true&sortBy=file:name&antInclude=*.xml")
.routeId("route1").noAutoStartup()
.aggregate(new XsltSaxonAggregationStrategy("org/apache/camel/util/toolbox/aggregate.xsl"))
diff --git a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltSaxonTest.java b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltSaxonTest.java
index dfe342586e9..3d6805bf5c3 100644
--- a/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltSaxonTest.java
+++ b/components/camel-xslt-saxon/src/test/java/org/apache/camel/component/xslt/saxon/XsltSaxonTest.java
@@ -69,9 +69,9 @@ public class XsltSaxonTest extends CamelTestSupport {
assertTrue(xml.indexOf("<body>Hello world!</body>") > -1);
}
- protected RouteBuilder createRouteBuilder() throws Exception {
+ protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
- public void configure() throws Exception {
+ public void configure() {
from("direct:start")
.to("xslt-saxon:xslt/transform.xsl")
.to("mock:result");