This closes #444

This commit is contained in:
Clebert Suconic 2016-04-08 10:07:09 -04:00
commit 5bcf5cbe17
1 changed files with 8 additions and 1 deletions

View File

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