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:15 UTC

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

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);
          }
       });