Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26BEEE0CE for ; Mon, 18 Feb 2013 16:41:48 +0000 (UTC) Received: (qmail 79603 invoked by uid 500); 18 Feb 2013 16:41:48 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 79576 invoked by uid 500); 18 Feb 2013 16:41:48 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 79569 invoked by uid 99); 18 Feb 2013 16:41:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 16:41:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 16:41:45 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1D8392388ABC; Mon, 18 Feb 2013 16:41:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1447383 - /activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/test/StompParallelTest.scala Date: Mon, 18 Feb 2013 16:41:26 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130218164126.1D8392388ABC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: chirino Date: Mon Feb 18 16:41:25 2013 New Revision: 1447383 URL: http://svn.apache.org/r1447383 Log: also test topic variations of the transction test 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=1447383&r1=1447382&r2=1447383&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 Mon Feb 18 16:41:25 2013 @@ -1628,36 +1628,39 @@ class StompParallelTest extends StompTes } - test("Transaction commit order") { - connect("1.1") - val dest = next_id("/queue/send_transaction-") - - async_send(dest, "m1") - - client.write( - "BEGIN\n" + - "transaction:x\n" + - "\n") - - async_send(dest, "t1", "transaction:x\n") - async_send(dest, "m2") - async_send(dest, "t2", "transaction:x\n") - - client.write( - "COMMIT\n" + - "transaction:x\n" + - "receipt:0\n"+ - "\n") - wait_for_receipt("0") - - async_send(dest, "m3") - - subscribe("mysub",dest) - - assert_received("m1") - assert_received("m2") - assert_received("t1") - assert_received("t2") - assert_received("m3") + for( kind <- Array("/queue/", "/topic/", "/topic/queued.")) { + test("Transaction commit order on "+kind) { + + val dest = next_id(kind+"send_transaction-") + + val receiver = connect("1.1", new StompClient) + subscribe("mysub",dest,c=receiver) + + connect("1.1") + async_send(dest, "m1") + + client.write( + "BEGIN\n" + + "transaction:x\n" + + "\n") + + async_send(dest, "t1", "transaction:x\n") + async_send(dest, "m2") + async_send(dest, "t2", "transaction:x\n") + + client.write( + "COMMIT\n" + + "transaction:x\n" + + "receipt:0\n"+ + "\n") + wait_for_receipt("0") + async_send(dest, "m3") + + assert_received("m1",c=receiver) + assert_received("m2",c=receiver) + assert_received("t1",c=receiver) + assert_received("t2",c=receiver) + assert_received("m3",c=receiver) + } } }