12851286128712881289129012911292129312941295
session2.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesConsumedSoRollbackOnPrepare() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
13811382138313841385138613871388138913901391
session2.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // 1PC optimisation public void testXAMessagesConsumedSoRollbackOnCommit() throws Exception {
14711472147314741475147614771478147914801481
session2.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testCreateNewFactoryAfterFailover() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
15131514151515161517151815191520152115221523
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testFailoverMultipleSessionsWithConsumers() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
16241625162616271628162916301631163216331634
sendSession.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } /* * Browser will get reset to beginning after failover */
17071708170917101711171217131714171517161717
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testFailThenReceiveMoreMessagesAfterFailover() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
17891790179117921793179417951796179717981799
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testFailThenReceiveMoreMessagesAfterFailover2() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
18821883188418851886188718881889189018911892
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testSimpleSendAfterFailoverDurableTemporary() throws Exception { testSimpleSendAfterFailover(true, true);
19741975197619771978197919801981198219831984
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testForceBlockingReturn() throws Exception { ClientSessionFactoryInternal sf = getSessionFactory();
20472048204920502051205220532054205520562057
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testCommitOccurredUnblockedAndResendNoDuplicates() throws Exception { final ClientSessionFactoryInternal sf = getSessionFactory();