activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1442642 - /activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
Date Tue, 05 Feb 2013 16:07:39 GMT
Author: tabish
Date: Tue Feb  5 16:07:38 2013
New Revision: 1442642

URL: http://svn.apache.org/viewvc?rev=1442642&view=rev
Log:
Make sure the first consumer is shutdown before moving on.

Modified:
    activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java

Modified: activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java?rev=1442642&r1=1442641&r2=1442642&view=diff
==============================================================================
--- activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
(original)
+++ activemq/trunk/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
Tue Feb  5 16:07:38 2013
@@ -351,8 +351,12 @@ public class StompTest extends StompTest
         assertTrue(frame.startsWith("RECEIPT"));
         assertTrue("Receipt contains correct receipt-id", frame.indexOf(Stomp.Headers.Response.RECEIPT_ID)
>= 0);
 
-        frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;
+        frame = "DISCONNECT\n" + "receipt: dis-1\n" + "\n\n" + Stomp.NULL;
         receiver.sendFrame(frame);
+        frame = receiver.receiveFrame();
+        assertTrue(frame.startsWith("RECEIPT"));
+        assertTrue("Receipt contains correct receipt-id", frame.indexOf(Stomp.Headers.Response.RECEIPT_ID)
>= 0);
+        receiver.close();
 
         MessageConsumer consumer = session.createConsumer(queue);
 



Mime
View raw message