You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/05/05 13:55:37 UTC

[1/2] activemq-artemis git commit: fixing test

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 <an...@gmail.com>
Authored: Thu May 5 13:00:53 2016 +0100
Committer: Andy Taylor <an...@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));
 


[2/2] activemq-artemis git commit: This closes #506

Posted by cl...@apache.org.
This closes #506


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

Branch: refs/heads/master
Commit: 28daa6f2df13426253ecb7766a80cd124cb037a2
Parents: 99acd68 f4f35fc
Author: Clebert Suconic <cl...@apache.org>
Authored: Thu May 5 09:55:23 2016 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Thu May 5 09:55:23 2016 -0400

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