You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2023/12/05 20:34:21 UTC

(activemq-artemis) branch main updated: NO-JIRA fix compilation issues in MQTT skeleton test

This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 5f2403af19 NO-JIRA fix compilation issues in MQTT skeleton test
5f2403af19 is described below

commit 5f2403af197882dc18bfb657f6948417303e1433
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Tue Dec 5 14:34:09 2023 -0600

    NO-JIRA fix compilation issues in MQTT skeleton test
---
 .../apache/activemq/artemis/tests/integration/mqtt5/MQTT5Test.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt5/MQTT5Test.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt5/MQTT5Test.java
index 41eb7b16aa..befc544214 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt5/MQTT5Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt5/MQTT5Test.java
@@ -19,6 +19,7 @@ package org.apache.activemq.artemis.tests.integration.mqtt5;
 import javax.jms.JMSConsumer;
 import javax.jms.JMSContext;
 import javax.jms.Message;
+import java.nio.charset.StandardCharsets;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.concurrent.CountDownLatch;
@@ -68,8 +69,8 @@ public class MQTT5Test extends MQTT5TestSupport {
       subscriber.connect();
       subscriber.setCallback(new DefaultMqttCallback() {
          @Override
-         public void messageArrived(String topic, MqttMessage message) throws Exception {
-            log.info("Message received from {}", topic);
+         public void messageArrived(String topic, MqttMessage message) {
+            System.out.println("Message received from " + topic + ": " + message);
             latch.countDown();
          }
       });