You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ce...@apache.org on 2013/08/13 20:23:14 UTC
svn commit: r1513607 -
/activemq/activemq-apollo/trunk/apollo-mqtt/src/test/scala/org/apache/activemq/apollo/mqtt/test/MqttExistingSessionTest.scala
Author: ceposta
Date: Tue Aug 13 18:23:13 2013
New Revision: 1513607
URL: http://svn.apache.org/r1513607
Log:
Added test for cleanSession=false and subscribing to wildcard dest
Modified:
activemq/activemq-apollo/trunk/apollo-mqtt/src/test/scala/org/apache/activemq/apollo/mqtt/test/MqttExistingSessionTest.scala
Modified: activemq/activemq-apollo/trunk/apollo-mqtt/src/test/scala/org/apache/activemq/apollo/mqtt/test/MqttExistingSessionTest.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-mqtt/src/test/scala/org/apache/activemq/apollo/mqtt/test/MqttExistingSessionTest.scala?rev=1513607&r1=1513606&r2=1513607&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-mqtt/src/test/scala/org/apache/activemq/apollo/mqtt/test/MqttExistingSessionTest.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-mqtt/src/test/scala/org/apache/activemq/apollo/mqtt/test/MqttExistingSessionTest.scala Tue Aug 13 18:23:13 2013
@@ -39,4 +39,11 @@ class MqttExistingSessionTest extends Mq
publish("existing/sub", "1", EXACTLY_ONCE)
should_receive("1", "existing/sub")
}
+
+ test("Subscribe") {
+ connect()
+ subscribe("foo/#")
+ publish("foo/A", "1", EXACTLY_ONCE)
+ should_receive("1", "foo/A")
+ }
}