58596061626364656667
} }); service.dispatchEvent(getTestEvent("test")); Thread.sleep(200); service.dispose(); assertTrue(latch.await(1000, TimeUnit.MILLISECONDS)); } }
339340341342343344345346347348349
connector.dispose(); assertEquals(0, connector.receivers.size()); } finally { service.dispose(); } } @Test public void testReceiversServiceLifecycle() throws Exception