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 341033860856eb13519814889f87f309c6f12b55 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Mon Sep 16 13:47:14 2024 +0200 CAMEL-21080: avoid duplicating JMX configuration defaults in camel-sjms2 --- .../component/sjms2/consumer/InOnlyTopicDurableConsumerTest.java | 5 ----- .../component/sjms2/consumer/InOnlyTopicSharedConsumerTest.java | 5 ----- .../camel/component/sjms2/producer/InOnlyTopicProducerTest.java | 5 ----- .../org/apache/camel/component/sjms2/support/Jms2TestSupport.java | 5 ----- 4 files changed, 20 deletions(-) diff --git a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicDurableConsumerTest.java b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicDurableConsumerTest.java index 1c14b29b4f4..8417d0c1030 100644 --- a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicDurableConsumerTest.java +++ b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicDurableConsumerTest.java @@ -40,11 +40,6 @@ public class InOnlyTopicDurableConsumerTest extends Jms2TestSupport { @RegisterExtension public static ArtemisService service = ArtemisServiceFactory.createTCPAllProtocolsService(); - @Override - protected boolean useJmx() { - return false; - } - @Test public void testDurableTopic() throws Exception { MockEndpoint mock = getMockEndpoint("mock:result"); diff --git a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicSharedConsumerTest.java b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicSharedConsumerTest.java index e03d8fba9ac..e7e0e07c1f0 100644 --- a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicSharedConsumerTest.java +++ b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/consumer/InOnlyTopicSharedConsumerTest.java @@ -32,11 +32,6 @@ public class InOnlyTopicSharedConsumerTest extends Jms2TestSupport { @RegisterExtension public static ArtemisService service = ArtemisServiceFactory.createTCPAllProtocolsService(); - @Override - protected boolean useJmx() { - return false; - } - @Test public void testSynchronous() throws Exception { final String expectedBody = "Hello World"; diff --git a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/producer/InOnlyTopicProducerTest.java b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/producer/InOnlyTopicProducerTest.java index 9d79b6f3031..0dd2f95c36d 100644 --- a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/producer/InOnlyTopicProducerTest.java +++ b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/producer/InOnlyTopicProducerTest.java @@ -41,11 +41,6 @@ public class InOnlyTopicProducerTest extends Jms2TestSupport { public InOnlyTopicProducerTest() { } - @Override - protected boolean useJmx() { - return false; - } - @Test public void testInOnlyTopicProducerProducer() throws Exception { MessageConsumer mc = createTopicConsumer(TEST_DESTINATION_NAME, null); diff --git a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/support/Jms2TestSupport.java b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/support/Jms2TestSupport.java index c89ce8bb413..5d5f0d6a935 100644 --- a/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/support/Jms2TestSupport.java +++ b/components/camel-sjms2/src/test/java/org/apache/camel/component/sjms2/support/Jms2TestSupport.java @@ -49,11 +49,6 @@ public abstract class Jms2TestSupport extends CamelTestSupport { private Session session; private DestinationCreationStrategy destinationCreationStrategy = new DefaultDestinationCreationStrategy(); - @Override - protected boolean useJmx() { - return false; - } - @AfterEach public void closeSessions() throws JMSException { log.info("Closing JMS Session");