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 6e88510d730be638f89d79f985c9e091e620ba95 Author: Otavio R. Piske <[email protected]> AuthorDate: Sun Mar 13 14:40:03 2022 +0100 CAMEL-17763: cleaned up unused exceptions in camel-beanstack --- .../java/org/apache/camel/component/beanstalk/EndpointTest.java | 2 +- .../java/org/apache/camel/component/beanstalk/ProducerTest.java | 2 +- .../apache/camel/component/beanstalk/TestExchangeCopyProcessor.java | 2 +- .../component/beanstalk/integration/BuryProducerIntegrationIT.java | 2 +- .../beanstalk/integration/DeleteProducerIntegrationIT.java | 2 +- .../component/beanstalk/integration/PutProducerIntegrationIT.java | 6 +++--- .../beanstalk/integration/ReleaseProducerIntegrationIT.java | 2 +- .../component/beanstalk/integration/TouchProducerIntegrationIT.java | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java index 45e3026..c48d4fa 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java @@ -30,7 +30,7 @@ public class EndpointTest { CamelContext context; @BeforeEach - public void setUp() throws Exception { + public void setUp() { context = new DefaultCamelContext(false); context.disableJMX(); context.start(); diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java index 4ef97aa..bb913fe 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java @@ -380,7 +380,7 @@ public class ProducerTest extends BeanstalkMockTestSupport { } @Test - void test2BeanstalkException() throws Exception { + void test2BeanstalkException() { final long jobId = 111; when(client.touch(jobId)) diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java index 33724f8..13de1b3 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java @@ -24,7 +24,7 @@ public class TestExchangeCopyProcessor implements Processor { private Exchange exchange; @Override - public void process(Exchange exchange) throws Exception { + public void process(Exchange exchange) { this.exchange = exchange.copy(); } diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java index 82e226f..71686f2 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java @@ -47,7 +47,7 @@ public class BuryProducerIntegrationIT extends BeanstalkCamelITSupport { @Disabled("requires reserve - bury sequence") @Test - void testBury() throws InterruptedException, IOException { + void testBury() throws InterruptedException { long jobId = writer.put(0, 0, 5, new byte[0]); assertTrue(jobId > 0, "Valid Job Id"); diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java index f5e942d..cd8f11f 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java @@ -45,7 +45,7 @@ public class DeleteProducerIntegrationIT extends BeanstalkCamelITSupport { protected ProducerTemplate direct; @Test - void testDelete() throws InterruptedException, IOException { + void testDelete() throws InterruptedException { long jobId = writer.put(0, 0, 5, new byte[0]); assertTrue(jobId > 0, "Valid Job Id"); diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java index 8e4ae76..7b097bb 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java @@ -49,7 +49,7 @@ public class PutProducerIntegrationIT extends BeanstalkCamelITSupport { private final String testMessage = "Hello, world!"; @Test - void testPut() throws InterruptedException, IOException { + void testPut() throws InterruptedException { resultEndpoint.expectedMessageCount(1); resultEndpoint.allMessages().header(Headers.JOB_ID).isNotNull(); direct.sendBody(testMessage); @@ -67,7 +67,7 @@ public class PutProducerIntegrationIT extends BeanstalkCamelITSupport { } @Test - void testOut() throws InterruptedException, IOException { + void testOut() { final Endpoint endpoint = context.getEndpoint("beanstalk:" + tubeName); final Exchange exchange = template.send(endpoint, ExchangePattern.InOut, exchange1 -> exchange1.getIn().setBody(testMessage)); @@ -86,7 +86,7 @@ public class PutProducerIntegrationIT extends BeanstalkCamelITSupport { } @Test - void testDelay() throws InterruptedException, IOException { + void testDelay() throws InterruptedException { final byte[] testBytes = new byte[0]; resultEndpoint.expectedMessageCount(1); diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java index c0ac744..0748de9 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java @@ -47,7 +47,7 @@ public class ReleaseProducerIntegrationIT extends BeanstalkCamelITSupport { @Disabled("requires reserve - release sequence") @Test - void testBury() throws InterruptedException, IOException { + void testBury() throws InterruptedException { long jobId = writer.put(0, 0, 5, new byte[0]); assertTrue(jobId > 0, "Valid Job Id"); diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java index 611db58..c8fcc04 100644 --- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java +++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java @@ -47,7 +47,7 @@ public class TouchProducerIntegrationIT extends BeanstalkCamelITSupport { @Disabled("requires reserve - touch sequence") @Test - void testBury() throws InterruptedException, IOException { + void testBury() throws InterruptedException { long jobId = writer.put(0, 0, 5, new byte[0]); assertTrue(jobId > 0, "Valid Job Id");
