This closes #444
This commit is contained in:
commit
5bcf5cbe17
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue