149150151152153154155156157158159
handler.removeNotificationListeners(new Integer[]{new Integer(1)}); assertFalse(handler.contains(new NotificationTuple(name, listener, null, null))); } finally { handler.stop(); } } public void testNotificationDelivery() throws Exception {
248249250251252253254255256257258
handler.removeNotificationListeners(new Integer[]{new Integer(1)}); sleep(2000); } finally { handler.stop(); } } public void testNotificationsLost() throws Exception {
317318319320321322323324325326327
handler.removeNotificationListeners(new Integer[]{id}); } finally { handler.stop(); } } public void testConnectionFailure() throws Exception {
477478479480481482483484485
while (delivered.get() < queued.get()) lock.wait(10); } } finally { handler.stop(); } } }