7071727374757677787980
// Each listener may decide to remove itself; that's OK, // EventListenerList handles that kind of concurrent modification // well. listener.threadDidCleanup(); } } }
96979899100101102103104105106
// EventListenerList handles that kind of concurrent modification // well. try { listener.threadDidCleanup(); } catch (RuntimeException ex) { _log.warn(ServiceMessages.threadCleanupException(ex), ex); }
3738394041424344454647
public void listeners_are_one_shot() { Log log = mockLog(); ThreadCleanupListener listener = mockThreadCleanupListener(); listener.threadDidCleanup(); replay(); ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(log);
public void listeners_are_one_shot() { Logger logger = mockLogger(); ThreadCleanupListener listener = mockThreadCleanupListener(); listener.threadDidCleanup(); replay(); PerthreadManagerImpl hub = new PerthreadManagerImpl(logger);
public void listeners_are_one_shot() { Logger logger = mockLogger(); ThreadCleanupListener listener = mockThreadCleanupListener(); listener.threadDidCleanup(); replay(); ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(logger);
public void listeners_are_one_shot() { Log log = newLog(); ThreadCleanupListener listener = newThreadCleanupListener(); listener.threadDidCleanup(); replay(); ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(log);
147148149150151152153154155156157
decoder.processFileItems(request, fileItems); assertFalse(firstItem.isDeleted()); assertFalse(secondItem.isDeleted()); decoder.threadDidCleanup(); assertTrue(firstItem.isDeleted()); assertTrue(secondItem.isDeleted()); verify(); }
3940414243444546474849