BasicThreadPool tp = new BasicThreadPool();
tp.setMaximumQueueSize(1);
tp.setMaximumPoolSize(1);
tp.setBlockingMode(BlockingMode.RUN);
TT tt = new TT();
TimeoutFactory tf = new TimeoutFactory(tp);
for (int i = 0; i < times; i++)
{
tf.schedule(0, (TimeoutTarget)tt);
}
count.whenEqual(times, null);
assertEquals(times, count.get());
}