200201202203204205206207208209210
joinThreads(); startListen(); Thread.sleep(200); myEventService.addEvent(TEST_DOMAIN, new ListenCycleCancelEvent()); joinListenThreads(); assertEquals(2100, getEventCount()); assertEquals(900, getEventCount(TEST_DOMAIN));
246247248249250251252253254255256
313314315316317318319320321322323
joinThreads(); startListen(); Thread.sleep(200); myEventService.addEvent(TEST_DOMAIN, new ListenCycleCancelEvent()); joinListenThreads(); assertEquals(2000, getEventCount()); assertEquals(2000, getEventCount(TEST_DOMAIN));