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/03/10 16:30:45 UTC
[camel] 12/14: CAMEL-17763: cleaned up unused exceptions in camel-stomp
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 81fd61fe4a0f86b71b98a897fc80cc98ddb6f6e2
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Mar 10 15:43:36 2022 +0100
CAMEL-17763: cleaned up unused exceptions in camel-stomp
---
.../src/test/java/org/apache/camel/component/stomp/StompBaseTest.java | 2 +-
.../java/org/apache/camel/component/stomp/StompCustomHeadersTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompBaseTest.java b/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompBaseTest.java
index 11fa729..d451b56 100644
--- a/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompBaseTest.java
+++ b/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompBaseTest.java
@@ -66,7 +66,7 @@ public abstract class StompBaseTest extends CamelTestSupport {
}
@Override
- protected Registry createCamelRegistry() throws Exception {
+ protected Registry createCamelRegistry() {
SimpleRegistry registry = new SimpleRegistry();
if (isUseSsl()) {
registry.bind("sslContextParameters", getClientSSLContextParameters());
diff --git a/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompCustomHeadersTest.java b/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompCustomHeadersTest.java
index edc6c05..cdaaec2 100644
--- a/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompCustomHeadersTest.java
+++ b/components/camel-stomp/src/test/java/org/apache/camel/component/stomp/StompCustomHeadersTest.java
@@ -27,7 +27,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
public class StompCustomHeadersTest extends StompBaseTest {
@Test
- public void testConsume() throws Exception {
+ public void testConsume() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("brokerURL", "tcp://localhost:61613");
map.put("version", "1.2");