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 054d7b5d9b06bc1e5428ba85c23adb8f48175267 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Mar 8 13:50:23 2022 +0100 CAMEL-17763: cleaned up unused exceptions in camel-azure-eventhubs --- .../camel/component/azure/eventhubs/EventHubsComponentTest.java | 2 +- .../component/azure/eventhubs/integration/EventHubsConsumerIT.java | 4 ++-- .../component/azure/eventhubs/integration/EventHubsProducerIT.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/EventHubsComponentTest.java b/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/EventHubsComponentTest.java index 02ec74e..1f6b7f9 100644 --- a/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/EventHubsComponentTest.java +++ b/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/EventHubsComponentTest.java @@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; class EventHubsComponentTest extends CamelTestSupport { @Test - public void testCreateEndpointWithNoEventHubsNameOrNameSpace() throws Exception { + public void testCreateEndpointWithNoEventHubsNameOrNameSpace() { ResolveEndpointFailedException exception = assertThrows(ResolveEndpointFailedException.class, () -> context.getEndpoint("azure-eventhubs:?sharedAccessKey=string&sharedAccessName=name")); diff --git a/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsConsumerIT.java b/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsConsumerIT.java index 3ed0bfe..cab2217 100644 --- a/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsConsumerIT.java +++ b/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsConsumerIT.java @@ -124,10 +124,10 @@ class EventHubsConsumerIT extends CamelTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { from("azure-eventhubs:?" + "connectionString=RAW({{connectionString}})" + "&blobContainerName=" + containerName + "&eventPosition=#eventPosition" diff --git a/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsProducerIT.java b/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsProducerIT.java index fb62262..097ae11 100644 --- a/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsProducerIT.java +++ b/components/camel-azure/camel-azure-eventhubs/src/test/java/org/apache/camel/component/azure/eventhubs/integration/EventHubsProducerIT.java @@ -132,10 +132,10 @@ class EventHubsProducerIT 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:sendAsync") .to("azure-eventhubs:?connectionString=RAW({{connectionString}})") .to(result);
