21372138213921402141214221432144214521462147
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testBackupServerNotRemoved() throws Exception { locator.setBlockOnNonDurableSend(true);
21912192219321942195219621972198219922002201
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testLiveAndBackupLiveComesBack() throws Exception { locator.setBlockOnNonDurableSend(true);
22472248224922502251225222532254225522562257
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testLiveAndBackupLiveComesBackNewFactory() throws Exception { locator.setBlockOnNonDurableSend(true);
174175176177178179180181182183184
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); sf.close(); stop(); }
799800801802803804805806807808809
session2.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotConsumedSoNoRollback() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
894895896897898899900901902903904
session2.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesSentSoRollbackOnEnd() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
964965966967968969970971972973974
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesSentSoRollbackOnPrepare() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
10361037103810391040104110421043104410451046
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // This might happen if 1PC optimisation kicks in public void testXAMessagesSentSoRollbackOnCommit() throws Exception {
11111112111311141115111611171118111911201121
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesNotSentSoNoRollbackOnCommit() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
12001201120212031204120512061207120812091210
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesConsumedSoRollbackOnEnd() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();