NO-JIRA fix compilation issues in MQTT skeleton test

This commit is contained in:
Justin Bertram 2023-12-05 14:34:09 -06:00
parent afe0e889c5
commit 5f2403af19
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}
});