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/04/08 16:07:14 UTC

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

Repository: activemq-artemis
Updated Branches:
  refs/heads/master 6bbceff7c -> 5bcf5cbe1


This closes #444


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

Branch: refs/heads/master
Commit: 5bcf5cbe17abdcffceee7a5c0165916c45f754a2
Parents: 6bbceff 9055c76
Author: Clebert Suconic <cl...@apache.org>
Authored: Fri Apr 8 10:07:09 2016 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Fri Apr 8 10:07:09 2016 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/client/SessionCloseTest.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[2/2] activemq-artemis git commit: ARTEMIS-475 - [Artemis Testsuite] SessionCloseTest#testCanNotUseXAWithClosedSession fails

Posted by cl...@apache.org.
ARTEMIS-475 - [Artemis Testsuite] SessionCloseTest#testCanNotUseXAWithClosedSession fails


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

Branch: refs/heads/master
Commit: 9055c76cc88320d94a6c4341b9b29b68e2e0cd7a
Parents: 6bbceff
Author: Erich Duda <ed...@redhat.com>
Authored: Fri Apr 8 08:25:44 2016 +0200
Committer: Clebert Suconic <cl...@apache.org>
Committed: Fri Apr 8 10:07:09 2016 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/client/SessionCloseTest.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9055c76c/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseTest.java
index 2d30112..559cc0a 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionCloseTest.java
@@ -144,10 +144,17 @@ public class SessionCloseTest extends ActiveMQTestBase {
       Assert.assertTrue(session.isXA());
       Assert.assertTrue(session.isClosed());
 
+      ActiveMQTestBase.expectXAException(XAException.XAER_RMFAIL, new ActiveMQAction() {
+         @Override
+         public void run() throws XAException {
+            session.commit(randomXid(), true);
+         }
+      });
+
       ActiveMQTestBase.expectXAException(XAException.XA_RETRY, new ActiveMQAction() {
          @Override
          public void run() throws XAException {
-            session.commit(randomXid(), RandomUtil.randomBoolean());
+            session.commit(randomXid(), false);
          }
       });