activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: fixing test
Date Thu, 05 May 2016 13:55:37 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 99acd6883 -> 28daa6f2d


fixing test

create consumer before sending message so queue is auto created


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/f4f35fc2
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/f4f35fc2
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/f4f35fc2

Branch: refs/heads/master
Commit: f4f35fc2f59867cf231e61440eb8481d2d8afa30
Parents: 99acd68
Author: Andy Taylor <andy.tayls67@gmail.com>
Authored: Thu May 5 13:00:53 2016 +0100
Committer: Andy Taylor <andy.tayls67@gmail.com>
Committed: Thu May 5 13:00:53 2016 +0100

----------------------------------------------------------------------
 .../activemq/artemis/tests/extras/byteman/FailureXATest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/f4f35fc2/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/FailureXATest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/FailureXATest.java
b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/FailureXATest.java
index b092e66..e279309 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/FailureXATest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/FailureXATest.java
@@ -93,17 +93,17 @@ public class FailureXATest extends ActiveMQTestBase {
       try {
          Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
          Queue queue = session.createQueue("Queue1");
+         final XASession xaSession = connection.createXASession();
+         MessageConsumer consumer = xaSession.createConsumer(queue);
 
          MessageProducer producer = session.createProducer(queue);
          producer.send(session.createTextMessage("hello " + 1));
          session.commit();
 
-         final XASession xaSession = connection.createXASession();
          XAResource xaResource = xaSession.getXAResource();
          final Xid xid = newXID();
          xaResource.start(xid, XAResource.TMNOFLAGS);
 
-         MessageConsumer consumer = xaSession.createConsumer(queue);
          connection.start();
          Assert.assertNotNull(consumer.receive(5000));
 


Mime
View raw message