Skip to content

Commit

Permalink
NO-JIRA Adding log.info back into test
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Dec 6, 2023
1 parent 5f2403a commit 7c338e4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import javax.jms.JMSConsumer;
import javax.jms.JMSContext;
import javax.jms.Message;
import java.lang.invoke.MethodHandles;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -50,12 +51,16 @@
import org.eclipse.paho.mqttv5.common.packet.MqttProperties;
import org.eclipse.paho.mqttv5.common.packet.UserProperty;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
* General tests for things not covered directly in the specification.
*/
public class MQTT5Test extends MQTT5TestSupport {

private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

public MQTT5Test(String protocol) {
super(protocol);
}
Expand All @@ -70,7 +75,7 @@ public void testSimpleSendReceive() throws Exception {
subscriber.setCallback(new DefaultMqttCallback() {
@Override
public void messageArrived(String topic, MqttMessage message) {
System.out.println("Message received from " + topic + ": " + message);
logger.info("Message received from topic {}, message={}", topic, message);
latch.countDown();
}
});
Expand Down

0 comments on commit 7c338e4

Please sign in to comment.