assertEquals(true, l2._cleanup);
}
public void testConcur()
{
ThreadEventNotifier n = new ThreadEventNotifierImpl();
Listener l1 = new Listener();
ConcurMod l2 = new ConcurMod(n);
Listener l3 = new Listener();
n.addThreadCleanupListener(l1);
n.addThreadCleanupListener(l2);
n.addThreadCleanupListener(l3);
n.fireThreadCleanup();
assertEquals(true, l1._cleanup);
assertEquals(true, l2._cleanup);
assertEquals(true, l3._cleanup);
l1._cleanup = false;
l2._cleanup = false;
l3._cleanup = false;
n.fireThreadCleanup();
assertEquals(true, l1._cleanup);
assertEquals(false, l2._cleanup);
assertEquals(true, l3._cleanup);
}