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 8fce1b0c48c6051402f595d4b9cef9f96ba3ee83 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Apr 12 18:31:39 2022 +0200 CAMEL-17763: cleaned up unused exceptions in camel-onlingo2 --- .../camel/component/olingo2/Olingo2AppAPIETagEnabledTest.java | 2 +- .../camel/component/olingo2/Olingo2ComponentProducerTest.java | 6 +++--- .../java/org/apache/camel/component/olingo2/Olingo2RouteTest.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPIETagEnabledTest.java b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPIETagEnabledTest.java index 8fe99194dff..39494ec4480 100644 --- a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPIETagEnabledTest.java +++ b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2AppAPIETagEnabledTest.java @@ -109,7 +109,7 @@ public class Olingo2AppAPIETagEnabledTest extends AbstractOlingo2AppAPITestSuppo @SuppressWarnings("resource") @Override - public MockResponse dispatch(RecordedRequest recordedRequest) throws InterruptedException { + public MockResponse dispatch(RecordedRequest recordedRequest) { MockResponse mockResponse = new MockResponse(); switch (recordedRequest.getMethod()) { diff --git a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2ComponentProducerTest.java b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2ComponentProducerTest.java index a67577f98dc..d90055eabea 100644 --- a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2ComponentProducerTest.java +++ b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2ComponentProducerTest.java @@ -132,7 +132,7 @@ public class Olingo2ComponentProducerTest extends AbstractOlingo2TestSupport { } @Test - public void testCreateUpdateDelete() throws Exception { + public void testCreateUpdateDelete() { final Map<String, Object> data = getEntityData(); Map<String, Object> address; @@ -169,7 +169,7 @@ public class Olingo2ComponentProducerTest extends AbstractOlingo2TestSupport { } @Test - public void testCreateMerge() throws Exception { + public void testCreateMerge() { final Map<String, Object> data = getEntityData(); data.put(ID_PROPERTY, TEST_MERGE_MANUFACTURER_ID); @@ -378,7 +378,7 @@ public class Olingo2ComponentProducerTest extends AbstractOlingo2TestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { // test routes for read diff --git a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2RouteTest.java b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2RouteTest.java index 37a40468777..208e7d94c05 100644 --- a/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2RouteTest.java +++ b/components/camel-olingo2/camel-olingo2-component/src/test/java/org/apache/camel/component/olingo2/Olingo2RouteTest.java @@ -70,7 +70,7 @@ public class Olingo2RouteTest extends CamelTestSupport { } @Test - public void testRead() throws Exception { + public void testRead() { final Map<String, Object> headers = new HashMap<>(); headers.put(Olingo2Constants.PROPERTY_PREFIX + "keyPredicate", "'1'"); @@ -81,7 +81,7 @@ public class Olingo2RouteTest extends CamelTestSupport { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:READENTRY").to("olingo2://read/DefaultContainer.Manufacturers?serviceUri=" + TEST_SERVICE_URL);
