124125126127128129130131
session.getChannel(channelName).publish("test"); Assert.assertFalse(messageLatch.await(1, TimeUnit.SECONDS)); session.disconnect(); } }
305306307308309310311312313314315
private void destroyLocalSession(Object bean) { LocalSession session = sessions.remove(bean); if (session != null) session.disconnect(); } /** * Processes lifecycle methods annotated with {@link PreDestroy}. *
131132133134135136137138
bayeuxServer.sweep(); Assert.assertNotNull(bayeuxServer.getSession(localSession.getId())); localSession.disconnect(); } }