activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cepo...@apache.org
Subject svn commit: r1513655 - /activemq/trunk/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTest.java
Date Tue, 13 Aug 2013 21:09:40 GMT
Author: ceposta
Date: Tue Aug 13 21:09:40 2013
New Revision: 1513655

URL: http://svn.apache.org/r1513655
Log:
added quick test for cleanSession=false and wildcard sub for MQTT from IRC chat

Modified:
    activemq/trunk/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTest.java

Modified: activemq/trunk/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTest.java?rev=1513655&r1=1513654&r2=1513655&view=diff
==============================================================================
--- activemq/trunk/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTest.java
(original)
+++ activemq/trunk/activemq-mqtt/src/test/java/org/apache/activemq/transport/mqtt/MQTTTest.java
Tue Aug 13 21:09:40 2013
@@ -92,8 +92,9 @@ public class MQTTTest extends AbstractMQ
         final BlockingConnection connection = mqtt.blockingConnection();
         connection.connect();
 
-        Topic[] topics = {new Topic("TopicA", QoS.EXACTLY_ONCE), new Topic("TopicB", QoS.EXACTLY_ONCE)};
-        connection.subscribe(topics);
+        Topic[] topics = {new Topic("Topic/A", QoS.EXACTLY_ONCE), new Topic("Topic/B", QoS.EXACTLY_ONCE)};
+        Topic[] wildcardTopic = {new Topic("Topic/#", QoS.AT_LEAST_ONCE)};
+        connection.subscribe(wildcardTopic);
 
         for (Topic topic : topics) {
             connection.publish(topic.name().toString(), payload, QoS.AT_LEAST_ONCE, false);



Mime
View raw message