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 e97f0368942352a15cac9457e8a71cf84160cc6c Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Tue Apr 12 17:22:01 2022 +0200 CAMEL-17763: cleaned up unused exceptions in camel-mongodb-gridfs --- .../camel/component/mongodb/gridfs/integration/GridFsConsumerIT.java | 4 ++-- .../mongodb/gridfs/integration/GridFsProducerOperationsIT.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsConsumerIT.java b/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsConsumerIT.java index 5a0ce715f5c..b3a31e9f1b2 100644 --- a/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsConsumerIT.java +++ b/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsConsumerIT.java @@ -38,7 +38,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; public class GridFsConsumerIT extends AbstractMongoDbITSupport { @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:create") @@ -86,7 +86,7 @@ public class GridFsConsumerIT extends AbstractMongoDbITSupport { "mongodb-gridfs:myDb?database={{mongodb.testDb}}&operation=create&bucket=customFileFilterTest", new Processor() { @Override - public void process(Exchange exchange) throws Exception { + public void process(Exchange exchange) { exchange.getMessage().setBody(FILE_DATA); exchange.getMessage().setHeaders(headers); } diff --git a/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsProducerOperationsIT.java b/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsProducerOperationsIT.java index 08218e86ccc..87303e28c07 100644 --- a/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsProducerOperationsIT.java +++ b/components/camel-mongodb-gridfs/src/test/java/org/apache/camel/component/mongodb/gridfs/integration/GridFsProducerOperationsIT.java @@ -37,7 +37,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; public class GridFsProducerOperationsIT extends AbstractMongoDbITSupport { @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:create") @@ -99,7 +99,7 @@ public class GridFsProducerOperationsIT extends AbstractMongoDbITSupport { Exchange result = template.request( "mongodb-gridfs:myDb?database={{mongodb.testDb}}&operation=create&bucket=" + getBucket(), new Processor() { @Override - public void process(Exchange exchange) throws Exception { + public void process(Exchange exchange) { exchange.getMessage().setBody(FILE_DATA); exchange.getMessage().setHeaders(headers); }