246247248249250251252253254255256
} while (!failer.isExecuted()); session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); stop(); }
557558559560561562563564565566567
sf.close(); Assert.assertTrue(retry <= 5); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testNonTransacted() throws Exception
619620621622623624625626627628629
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testConsumeTransacted() throws Exception
703704705706707708709710711712713
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // https://jira.jboss.org/jira/browse/HORNETQ-285
761762763764765766767768769770771
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesSentSoRollback() throws Exception
820821822823824825826827828829830
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } /**
895896897898899900901902903904905
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotSentSoNoRollback() throws Exception
967968969970971972973974975976977
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesWithConsumerStartedBeforeFailover() throws Exception
10471048104910501051105210531054105510561057
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesConsumedSoRollback() throws Exception
11211122112311241125112611271128112911301131
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotConsumedSoNoRollback() throws Exception