150151152153154155156157158159160
Assert.assertEquals(MAX_PRODUCERS * NUM_MESSAGE_TO_SEND, messageCount.get()); } finally { container1.stop(); container1.destroy(); container1 = null; brokerService1.stop(); brokerService1 = null; brokerService2.stop();
208209210211212213214215216217218
container1.stop(); container1.destroy(); container1 = null; container2.stop(); container2.destroy(); container2 = null; brokerService1.stop(); brokerService1 = null; brokerService2.stop();
151152153154155156157158159160161
} catch (Exception e) { e.printStackTrace(); } finally { container1.stop(); container1.destroy(); container1 = null; brokerService1.stop(); brokerService1 = null; brokerService2.stop();
93949596979899100101102103
executor.shutdown(); // Thread.sleep(30000); Assert.assertEquals(TOTAL_MESSAGES, messageCount.get()); } finally { container1.stop(); container1.destroy(); container1 = null; brokerService1.stop(); brokerService1 = null; } }
114115116117118119120121122123124
Assert.assertEquals(NUM_MESSAGE_TO_SEND, messageCount.get()); } finally { container1.stop(); container1.destroy(); container1 = null; brokerService1.stop(); brokerService1 = null; }
164165166167168169170171172173174
220221222223224225226227228229230
113114115116117118119120121122123
assertEquals(NUM_MESSAGE_TO_SEND, messageCount.get()); } finally { container1.stop(); container1.destroy(); container1 = null; brokerService1.stop(); brokerService1 = null; } }
161162163164165166167168169170171
assertEquals(MAX_PRODUCERS * NUM_MESSAGE_TO_SEND, messageCount.get()); } finally { container1.stop(); container1.destroy(); container1 = null; brokerService1.stop(); brokerService1 = null; brokerService2.stop();
216217218219220221222223224225226