You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2013/02/15 16:41:47 UTC

svn commit: r1446634 - /activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala

Author: chirino
Date: Fri Feb 15 15:41:47 2013
New Revision: 1446634

URL: http://svn.apache.org/r1446634
Log:
Simplify a test case.

Modified:
    activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala

Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala?rev=1446634&r1=1446633&r2=1446634&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala Fri Feb 15 15:41:47 2013
@@ -938,31 +938,11 @@ class StompParallelTest extends StompTes
     connect("1.1")
 
     // Connect to subscribers
-    client.write(
-      "SUBSCRIBE\n" +
-              "destination:/queue/mirrored.b\n" +
-              "id:1\n" +
-              "receipt:0\n" +
-              "\n")
-    wait_for_receipt("0")
-
-    def put(id: Int) = {
-      client.write(
-        "SEND\n" +
-                "destination:/topic/mirrored.b\n" +
-                "\n" +
-                "message:" + id + "\n")
-    }
-
-    put(1)
-
-    def get(id: Int) = {
-      val frame = client.receive()
-      frame should startWith("MESSAGE\n")
-      frame should endWith regex ("\n\nmessage:" + id + "\n")
+    subscribe("1", "/queue/mirrored.b")
+    for( i <- 1 to 10 ) {
+      async_send("/topic/mirrored.b", i)
+      assert_received(i)
     }
-    get(1)
-
   }
 
   test("Queue does not get copies from topic until it's first created") {