248249250251252253254255256257258
session.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); stop(); } }
559560561562563564565566567568569
Assert.assertTrue(retry <= 5); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testNonTransacted() throws Exception { ClientSessionFactoryInternal sf;
621622623624625626627628629630631
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testConsumeTransacted() throws Exception { locator.setBlockOnNonDurableSend(true);
705706707708709710711712713714715
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // https://jira.jboss.org/jira/browse/HORNETQ-285 public void testFailoverOnInitialConnection() throws Exception {
763764765766767768769770771772773
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesSentSoRollback() throws Exception { locator.setBlockOnNonDurableSend(true);
822823824825826827828829830831832
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } /** * Test that once the transacted session has throw a TRANSACTION_ROLLED_BACK exception, * it can be reused again
897898899900901902903904905906907
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotSentSoNoRollback() throws Exception { locator.setBlockOnNonDurableSend(true);
969970971972973974975976977978979
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesWithConsumerStartedBeforeFailover() throws Exception { locator.setBlockOnNonDurableSend(true);
10491050105110521053105410551056105710581059
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesConsumedSoRollback() throws Exception { locator.setBlockOnNonDurableSend(true);
11231124112511261127112811291130113111321133
sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotConsumedSoNoRollback() throws Exception { locator.setBlockOnNonDurableSend(true);