ARTEMIS-475 - [Artemis Testsuite] SessionCloseTest#testCanNotUseXAWithClosedSession fails
This commit is contained in:
parent
6bbceff7c0
commit
9055c76cc8
|
@ -144,10 +144,17 @@ public class SessionCloseTest extends ActiveMQTestBase {
|
||||||
Assert.assertTrue(session.isXA());
|
Assert.assertTrue(session.isXA());
|
||||||
Assert.assertTrue(session.isClosed());
|
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() {
|
ActiveMQTestBase.expectXAException(XAException.XA_RETRY, new ActiveMQAction() {
|
||||||
@Override
|
@Override
|
||||||
public void run() throws XAException {
|
public void run() throws XAException {
|
||||||
session.commit(randomXid(), RandomUtil.randomBoolean());
|
session.commit(randomXid(), false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue