11251126112711281129113011311132113311341135
} finally { if (bridge != null) { bridge.stop(); } if (connSource != null) { connSource.close();
13191320132113221323132413251326132713281329
14181419142014211422142314241425142614271428
15241525152615271528152915301531153215331534
} } if (bridge != null) { bridge.stop(); } } } private void testStressBatchTime(final QualityOfServiceMode qosMode, final boolean persistent, final int maxBatchTime) throws Exception
16181619162016211622162316241625162616271628
} } if (bridge != null) { bridge.stop(); } } } // Both source and destination on same rm
17111712171317141715171617171718171917201721
} } if (bridge != null) { bridge.stop(); } } } private void testNoMaxBatchTime(final QualityOfServiceMode qosMode, final boolean persistent) throws Exception
17891790179117921793179417951796179717981799
finally { if (bridge != null) { JMSBridgeTest.log.info("Stopping bridge"); bridge.stop(); } } } private void testNoMaxBatchTimeSameServer(final QualityOfServiceMode qosMode, final boolean persistent) throws Exception
18651866186718681869187018711872187318741875
} finally { if (bridge != null) { bridge.stop(); } } } private void testMaxBatchTime(final QualityOfServiceMode qosMode, final boolean persistent) throws Exception
131132133134135136137138139140141
} finally { try { bridge.stop(); } catch (Exception e) { JMSBridgeReconnectionTest.log.error("Failed to stop bridge", e); }
170171172173174175176177178179180
bridge.start(); Assert.assertFalse(bridge.isStarted()); Assert.assertTrue(bridge.isFailed()); bridge.stop(); Assert.assertFalse(bridge.isStarted()); // Thread.sleep(3000); // we restart and setup the server for the test's tearDown checks